Fix up plafform testes in check headers.
authorSteven Munroe <munroesj@gcc.gnu.org>
Wed, 19 Jul 2017 19:04:50 +0000 (19:04 +0000)
committerSteven Munroe <munroesj@gcc.gnu.org>
Wed, 19 Jul 2017 19:04:50 +0000 (19:04 +0000)
Fix up plafform testes in check headers. After a resent GCC change
the previously submitted BMI/BMI2 intrinsic test started to fail
with a warning/error.

[gcc/testsuite]

2017-07-19  Steven Munroe  <munroesj@gcc.gnu.org>

* gcc.target/powerpc/bmi-check.h (main): Skip unless
__BUILTIN_CPU_SUPPORTS__ defined.
* gcc.target/powerpc/bmi2-check.h (main): Skip unless
__BUILTIN_CPU_SUPPORTS__ defined.

From-SVN: r250362

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/bmi-check.h
gcc/testsuite/gcc.target/powerpc/bmi2-check.h

index a193548b0048a9bc5421ff0a8b35704e84ff169f..4cbab4e28d395b06e716bbc03c92606596574500 100644 (file)
@@ -1,3 +1,10 @@
+2017-07-19  Steven Munroe  <munroesj@gcc.gnu.org>
+
+       * gcc.target/powerpc/bmi-check.h (main): Skip unless
+       __BUILTIN_CPU_SUPPORTS__ defined.
+       * gcc.target/powerpc/bmi2-check.h (main): Skip unless
+       __BUILTIN_CPU_SUPPORTS__ defined.
+
 2017-07-19  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/81346
index 35a2ac29bc384a2278913cdf4f355945c296add3..1a9ad13f38cde7dc0fd71a793b14fc8e5d16ec1c 100644 (file)
@@ -13,6 +13,7 @@ do_test (void)
 int
 main ()
 {
+#ifdef __BUILTIN_CPU_SUPPORTS__
   /* Need 64-bit for 64-bit longs as single instruction.  */
   if ( __builtin_cpu_supports ("ppc64") )
     {
@@ -25,6 +26,6 @@ main ()
   else
     printf ("SKIPPED\n");
 #endif
-
+#endif /* __BUILTIN_CPU_SUPPORTS__ */
   return 0;
 }
index fa7d4c02a4529d1490fed03b57234ecb953422e5..ab032eaa7caef043c2e2da87147bbfd34ba5b977 100644 (file)
@@ -13,6 +13,7 @@ do_test (void)
 int
 main ()
 {
+#ifdef __BUILTIN_CPU_SUPPORTS__
   /* The BMI2 test for pext test requires the Bit Permute doubleword
      (bpermd) instruction added in PowerISA 2.06 along with the VSX
      facility.  So we can test for arch_2_06.  */
@@ -27,7 +28,7 @@ main ()
   else
     printf ("SKIPPED\n");
 #endif
-
+#endif /* __BUILTIN_CPU_SUPPORTS__ */
   return 0;
 }