testsuite: Compile g++.dg/vect/slp-pr98855.cc only for x86 targets [PR103935]
authorUros Bizjak <ubizjak@gmail.com>
Wed, 12 Jan 2022 19:38:42 +0000 (20:38 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Wed, 12 Jan 2022 19:38:42 +0000 (20:38 +0100)
The testcase is x86 specific, other targets have different costs defined.

2022-01-12  Uroš Bizjak  <ubizjak@gmail.com>

gcc/testsuite/ChangeLog:

PR target/103935
* g++.dg/vect/slp-pr98855.cc: Compile only for x86 targets.

gcc/testsuite/g++.dg/vect/slp-pr98855.cc

index ff59eb9..e0527c4 100644 (file)
@@ -1,6 +1,5 @@
-// { dg-do compile }
-// { dg-additional-options "-fvect-cost-model=cheap" }
-// { dg-additional-options "-mavx2" { target x86_64-*-* i?86-*-* } }
+// { dg-do compile { target i?86-*-* x86_64-*-* } }
+// { dg-additional-options "-fvect-cost-model=cheap -mavx2" }
 
 #include <stdint.h>
 #include <stdlib.h>