From ccfa843f6722b5223fdf0dd83b189555a629e5a6 Mon Sep 17 00:00:00 2001 From: Steven Munroe Date: Wed, 19 Jul 2017 19:04:50 +0000 Subject: [PATCH] Fix up plafform testes in check headers. 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 * 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 | 7 +++++++ gcc/testsuite/gcc.target/powerpc/bmi-check.h | 3 ++- gcc/testsuite/gcc.target/powerpc/bmi2-check.h | 3 ++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index a193548b004..4cbab4e28d3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2017-07-19 Steven Munroe + + * 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 PR tree-optimization/81346 diff --git a/gcc/testsuite/gcc.target/powerpc/bmi-check.h b/gcc/testsuite/gcc.target/powerpc/bmi-check.h index 35a2ac29bc3..1a9ad13f38c 100644 --- a/gcc/testsuite/gcc.target/powerpc/bmi-check.h +++ b/gcc/testsuite/gcc.target/powerpc/bmi-check.h @@ -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; } diff --git a/gcc/testsuite/gcc.target/powerpc/bmi2-check.h b/gcc/testsuite/gcc.target/powerpc/bmi2-check.h index fa7d4c02a45..ab032eaa7ca 100644 --- a/gcc/testsuite/gcc.target/powerpc/bmi2-check.h +++ b/gcc/testsuite/gcc.target/powerpc/bmi2-check.h @@ -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; } -- 2.30.2