testsuite: Compile g++.dg/vect/slp-pr98855.cc only for x86 targets [PR103935]

Message ID CAFULd4Zu3twL-5XXyThK4yKFcu48NZYn=afJ4-q3JQ_jGMDG9w@mail.gmail.com
State New
Headers show
Series
  • testsuite: Compile g++.dg/vect/slp-pr98855.cc only for x86 targets [PR103935]
Related show

Commit Message

Antoni Boucher via Gcc-patches Jan. 12, 2022, 7:40 p.m.
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.

Tested on x86_64-linux-gnu {,-m32}.

Pushed to master.

Uros.

Patch

diff --git a/gcc/testsuite/g++.dg/vect/slp-pr98855.cc b/gcc/testsuite/g++.dg/vect/slp-pr98855.cc
index ff59eb95aca..e0527c492d5 100644
--- a/gcc/testsuite/g++.dg/vect/slp-pr98855.cc
+++ b/gcc/testsuite/g++.dg/vect/slp-pr98855.cc
@@ -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>