From 354349e7d59323559d0e372484f10358bd86a54f Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 9 Feb 2022 11:48:58 -0800 Subject: [PATCH] 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. --- 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 --git a/gcc/testsuite/gcc.target/i386/pr104441-1a.c b/gcc/testsuite/gcc.target/i386/pr104441-1a.c index f4d263205f8c..83734f710bd4 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 #include diff --git a/gcc/testsuite/gcc.target/i386/pr104441-1b.c b/gcc/testsuite/gcc.target/i386/pr104441-1b.c index 0b8a796d93cf..325af044bb8a 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" -- 2.47.2