testsuite: Add -mtune=generic to dg-options for two testcases.
authorCui,Lili <lili.cui@intel.com>
Fri, 10 Jun 2022 07:31:21 +0000 (15:31 +0800)
committerliuhongt <hongtao.liu@intel.com>
Mon, 13 Jun 2022 02:03:54 +0000 (10:03 +0800)
Use -mtune=generic to limit these two test cases. Because configuring them with
-mtune=cascadelake or znver3 will vectorize them.

gcc/testsuite/ChangeLog:

* gcc.dg/vect/costmodel/x86_64/costmodel-pr104582-2.c: Add
-mtune=generic to dg-options.
* gcc.target/i386/pr84101.c: Likewise.

gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr104582-2.c
gcc/testsuite/gcc.target/i386/pr84101.c

index 7637cdb..d060135 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-additional-options "-msse -fdump-tree-slp2-details" } */
+/* { dg-additional-options "-msse -mtune=generic -fdump-tree-slp2-details" } */
 
 struct S { unsigned long a, b; } s;
 
index cf14489..2c5a973 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O3 -fdump-tree-slp2-details" } */
+/* { dg-options "-O3 -mtune=generic -fdump-tree-slp2-details" } */
 
 typedef struct uint64_pair uint64_pair_t ;
 struct uint64_pair