diff mbox series

[COMMITED] x86: Compile PR target/104441 tests with -march=x86-64

Message ID 20220209195316.771438-1-hjl.tools@gmail.com
State New
Headers show
Series [COMMITED] x86: Compile PR target/104441 tests with -march=x86-64 | expand

Commit Message

H.J. Lu Feb. 9, 2022, 7:53 p.m. UTC
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.
---
 gcc/testsuite/gcc.target/i386/pr104441-1a.c | 2 +-
 gcc/testsuite/gcc.target/i386/pr104441-1b.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/i386/pr104441-1a.c b/gcc/testsuite/gcc.target/i386/pr104441-1a.c
index f4d263205f8..83734f710bd 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 0b8a796d93c..325af044bb8 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"