From: Alexandre Oliva Date: Wed, 11 Feb 2026 00:36:48 +0000 (-0300) Subject: testsuite: i386: require glibc for C99 libm in vectorize-aocl1.c X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cd5aaf462ed6096363a45c608115d02a921aafd;p=thirdparty%2Fgcc.git 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 --git a/gcc/testsuite/gcc.target/i386/vectorize-aocl1.c b/gcc/testsuite/gcc.target/i386/vectorize-aocl1.c index 5ffb04a7b5b..18c098aeed0 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" } */