This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch for PR84359
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Cc: Vladimir Makarov <vmakarov at redhat dot com>
- Date: Wed, 14 Feb 2018 20:21:38 +0100
- Subject: Re: patch for PR84359
- Authentication-results: sourceware.org; auth=none
> The following patch fixes
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84359
>
> Committed as rev. 257628.
>
>
> Index: testsuite/gcc.target/i386/pr57193.c
> ===================================================================
> --- testsuite/gcc.target/i386/pr57193.c (revision 257537)
> +++ testsuite/gcc.target/i386/pr57193.c (working copy)
> @@ -1,5 +1,5 @@
> /* { dg-do compile { target { ! ia32 } } } */
> -/* { dg-options "-O2" } */
> +/* { dg-options "-O2 -march=x86-64" } */
> /* { dg-final { scan-assembler-times "movdqa" 2 } } */
The preferred way to stabilize assembler dumps on testcases, which
depend on -march is to manually specify -mno-sseX, as in the attached
patch.
Also, the test will work on 32bit x86 targets with -msse2, so the
patch also removes target selector from the testcase.
Tested on x86_64-linux-gnu {,-m32}, will be committed to mainline ASAP.
Uros.
Index: gcc.target/i386/pr57193.c
===================================================================
--- gcc.target/i386/pr57193.c (revision 257659)
+++ gcc.target/i386/pr57193.c (working copy)
@@ -1,5 +1,5 @@
-/* { dg-do compile { target { ! ia32 } } } */
-/* { dg-options "-O2 -march=x86-64" } */
+/* { dg-do compile } */
+/* { dg-options "-O2 -msse2 -mno-sse3" } */
/* { dg-final { scan-assembler-times "movdqa" 2 } } */
#include <emmintrin.h>