]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: i386: require glibc for C99 libm in vectorize-aocl1.c
authorAlexandre Oliva <oliva@adacore.com>
Wed, 11 Feb 2026 00:36:48 +0000 (21:36 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 11 Feb 2026 00:36:48 +0000 (21:36 -0300)
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.

gcc/testsuite/gcc.target/i386/vectorize-aocl1.c

index 5ffb04a7b5b9605d25ce3cc87a743098586df8b7..18c098aeed067f5b116ea38321da83f8f13ab3a0 100644 (file)
@@ -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" } */