From: H.J. Lu Date: Wed, 9 Feb 2022 19:48:58 +0000 (-0800) Subject: x86: Compile PR target/104441 tests with -march=x86-64 X-Git-Tag: basepoints/gcc-13~1164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=354349e7d59323559d0e372484f10358bd86a54f;p=thirdparty%2Fgcc.git 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. --- 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"