Thanks for the fix!

Filip

On Tue 2026-02-10 03:21:48, Alexandre Oliva wrote:
> 
> 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.
> 
> Tested on x86_64-elf with trunk, and also with gcc-15.  Ok to install?
> 
> 
> for  gcc/testsuite/ChangeLog
> 
>       * gcc.target/i386/vectorize-aocl1.c: Require glibc.
> ---
>  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 5ffb04a7b5b96..18c098aeed067 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" } */
>  
>  
> 
> 
> -- 
> Alexandre Oliva, happy hacker            https://blog.lx.oliva.nom.br/
> Free Software Activist     FSFLA co-founder     GNU Toolchain Engineer
> More tolerance and less prejudice are key for inclusion and diversity.
> Excluding neuro-others for not behaving ""normal"" is *not* inclusive!

Reply via email to