On Thu, Jan 30, 2025 at 04:46:49PM -0300, Alexandre Oliva wrote:
> 
> The test expects transformations that depend on -Ofast on x86*, but
> that option is only passed when the avx_runtime is available.
> 
> Split -Ofast out of the avx conditional, so that it is passed on the
> same targets that expect the transformation.
> 
> Regstrapped on x86_64-linux-gnu, also tested with gcc-14 targeting
> x86_64-elf.  Ok to install?
> 
> 
> for  gcc/testsuite/ChangeLog
> 
>       * gcc.dg/vect/vect-ifcvt-18.c: Split -Ofast out of
>       avx_runtime.

LGTM.
> ---
>  gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c 
> b/gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c
> index c1d3c27d81933..228011ae07bce 100644
> --- a/gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c
> +++ b/gcc/testsuite/gcc.dg/vect/vect-ifcvt-18.c
> @@ -1,6 +1,7 @@
>  /* { dg-require-effective-target vect_condition } */
>  /* { dg-require-effective-target vect_float } */
> -/* { dg-additional-options "-Ofast -mavx" { target avx_runtime } } */
> +/* { dg-additional-options "-Ofast" { target i?86-*-* x86_64-*-* } } */
> +/* { dg-additional-options "-mavx" { target avx_runtime } } */

        Jakub

Reply via email to