aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2022-02-09 11:48:58 -0800
committerH.J. Lu <hjl.tools@gmail.com>2022-02-09 11:53:40 -0800
commit354349e7d59323559d0e372484f10358bd86a54f (patch)
treee2bb751862d31ee7e17867250dfcbec4d11c012b
parent499f8d4c2bc585b985882b4716f35b4c1553ce32 (diff)
downloadgcc-354349e7d59323559d0e372484f10358bd86a54f.zip
gcc-354349e7d59323559d0e372484f10358bd86a54f.tar.gz
gcc-354349e7d59323559d0e372484f10358bd86a54f.tar.bz2
x86: Compile PR target/104441 tests with -march=x86-64
Compile PR target/104441 tests with -march=x86-64 to fix test failures when GCC is configured with --with-arch=native --with-cpu=native. PR target/104441 * gcc.target/i386/pr104441-1a.c: Compile with -march=x86-64. * gcc.target/i386/pr104441-1b.c: Likewise.
-rw-r--r--gcc/testsuite/gcc.target/i386/pr104441-1a.c2
-rw-r--r--gcc/testsuite/gcc.target/i386/pr104441-1b.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr104441-1a.c b/gcc/testsuite/gcc.target/i386/pr104441-1a.c
index f4d2632..83734f7 100644
--- a/gcc/testsuite/gcc.target/i386/pr104441-1a.c
+++ b/gcc/testsuite/gcc.target/i386/pr104441-1a.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-O3 -mtune=skylake -Wno-attributes" } */
+/* { dg-options "-O3 -march=x86-64 -mtune=skylake -Wno-attributes" } */
#include <x86intrin.h>
#include <stdint.h>
diff --git a/gcc/testsuite/gcc.target/i386/pr104441-1b.c b/gcc/testsuite/gcc.target/i386/pr104441-1b.c
index 0b8a796..325af04 100644
--- a/gcc/testsuite/gcc.target/i386/pr104441-1b.c
+++ b/gcc/testsuite/gcc.target/i386/pr104441-1b.c
@@ -1,5 +1,5 @@
/* { dg-do run } */
-/* { dg-options "-O3 -mvzeroupper -Wno-attributes" } */
+/* { dg-options "-O3 -march=x86-64 -mvzeroupper -Wno-attributes" } */
#include "pr104441-1a.c"