[gcc(refs/users/aoliva/heads/testme)] testsuite: i386: require glibc for C99 libm in vectorize-aocl1.c
Alexandre Oliva
aoliva@gcc.gnu.org
Tue Feb 10 04:43:38 GMT 2026
https://gcc.gnu.org/g:8be3da1077b6b5509757124d0e97b07b3cdf006a
commit 8be3da1077b6b5509757124d0e97b07b3cdf006a
Author: Alexandre Oliva <oliva@adacore.com>
Date: Tue Feb 10 01:29:26 2026 -0300
testsuite: i386: require glibc for C99 libm in vectorize-aocl1.c
x86_64-elf fails gcc.target/i386/vectorize-aocl1.c because various
functions aren't recognized as builtins because the target isn't
assumed to offer C99 math library functions, and then the expected
transformations don't occur when calling them.
It would presumably be possible to adjust the test so that it passes
under such conditions, but I'm not undertaking that. Requiring glibc
isn't quite ideal, but it's probably good enough, even though the test
makes some effort to compile with other libraries.
for gcc/testsuite/ChangeLog
* gcc.target/i386/vectorize-aocl1.c: Require glibc.
Diff:
---
gcc/testsuite/gcc.target/i386/vectorize-aocl1.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.target/i386/vectorize-aocl1.c b/gcc/testsuite/gcc.target/i386/vectorize-aocl1.c
index 5ffb04a7b5b9..18c098aeed06 100644
--- a/gcc/testsuite/gcc.target/i386/vectorize-aocl1.c
+++ b/gcc/testsuite/gcc.target/i386/vectorize-aocl1.c
@@ -1,4 +1,4 @@
-/* { dg-do compile { target { ! ia32 } } } */
+/* { dg-do compile { target { { ! ia32 } && glibc } } } */
/* { dg-options "-O2 -ftree-vectorize -ffast-math -march=znver5 -mveclibabi=aocl" } */
More information about the Gcc-cvs
mailing list