[PATCH] [testsuite/i386] PR 82268 Correct FAIL when configured --with-cpu

Uros Bizjak ubizjak@gmail.com
Fri Oct 27 21:57:00 GMT 2017


On Fri, Oct 27, 2017 at 11:17 PM, Daniel Santos <daniel.santos@pobox.com> wrote:
> When I originally wrote this test I wasn't wasn't aware of the
> --with-cpu configure option, so this change explicitly disables avx to
> make sure we choose the sse implementation, even when --with-cpu
> specifies an arch that has avx support.
>
> OK for head?
>
> gcc/testsuite/ChangeLog:
>
>         gcc.target/i386/pr82196-1.c (dg-options): Add -mno-avx.

OK.

Thanks,
Uros.

> Thanks,
> Daniel
>
> ---
>  gcc/testsuite/gcc.target/i386/pr82196-1.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/testsuite/gcc.target/i386/pr82196-1.c b/gcc/testsuite/gcc.target/i386/pr82196-1.c
> index 541d975480d..ff108132bb5 100644
> --- a/gcc/testsuite/gcc.target/i386/pr82196-1.c
> +++ b/gcc/testsuite/gcc.target/i386/pr82196-1.c
> @@ -1,5 +1,5 @@
>  /* { dg-do compile { target lp64 } } */
> -/* { dg-options "-msse -mcall-ms2sysv-xlogues -O2" } */
> +/* { dg-options "-mno-avx -msse -mcall-ms2sysv-xlogues -O2" } */
>  /* { dg-final { scan-assembler "call.*__sse_savms64f?_12" } } */
>  /* { dg-final { scan-assembler "jmp.*__sse_resms64f?x_12" } } */
>
> --
> 2.14.3
>



More information about the Gcc-patches mailing list