]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Fix mvc17.c test for default target clone under --with-arch
authorHongyu Wang <hongyu.wang@intel.com>
Wed, 28 Jun 2023 01:13:29 +0000 (09:13 +0800)
committerHongyu Wang <hongyu.wang@intel.com>
Wed, 28 Jun 2023 02:14:38 +0000 (10:14 +0800)
For target clones, the default clone follows the default march
so adjust the testcase to avoid test failure on --with-arch=native
build.

gcc/testsuite/ChangeLog:

* gcc.target/i386/mvc17.c: Add -march=x86-64 to dg-options.

gcc/testsuite/gcc.target/i386/mvc17.c

index 2c7cc2fdaceedad461c2dccfdd50cb51f4f71e35..8b83c1aecb36e02d20e66e6895e17adbf073168a 100644 (file)
@@ -1,6 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-ifunc "" } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -march=x86-64" } */
 /* { dg-final { scan-assembler-times "rep mov" 1 } } */
 
 __attribute__((target_clones("default","arch=icelake-server")))