Fix tree-prof/pr66295.c
authorSegher Boessenkool <segher@kernel.crashing.org>
Thu, 16 Mar 2017 18:18:58 +0000 (19:18 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Thu, 16 Mar 2017 18:18:58 +0000 (19:18 +0100)
This testcase can only ever be built on x86 (it needs the "avx*"
attributes).  This patch skips the test elsewhere.

gcc/testsuite/
* gcc.dg/tree-prof/pr66295.c: Skip unless on an x86 target.

From-SVN: r246206

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-prof/pr66295.c

index d32307f..1a6d154 100644 (file)
@@ -1,3 +1,7 @@
+2017-03-16  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * gcc.dg/tree-prof/pr66295.c: Skip unless on an x86 target.
+
 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
 
        PR fortran/80010
index b90ef84..d7d64c4 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-require-ifunc "" } */
+/* { dg-skip-if "" { ! { i?86-*-* x86_64-*-* } } } */
 /* { dg-options "-O2" } */
 
 static double bar (double *__restrict, double *__restrict, int)