]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
x86: Compile PR target/104441 tests with -march=x86-64
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 9 Feb 2022 19:48:58 +0000 (11:48 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 9 Feb 2022 19:53:40 +0000 (11:53 -0800)
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
gcc/testsuite/gcc.target/i386/pr104441-1b.c

index f4d263205f8c4781293bec04f045f07284dc5496..83734f710bd4dbd6e5524eaafcad031fec45d5e8 100644 (file)
@@ -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>
index 0b8a796d93cf10c3284141b24bada24e85551a98..325af044bb8a57bfb0d82b6c6c8b5b95d746403e 100644 (file)
@@ -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"