Commit ccfa843f by Steven Munroe

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  <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
parent 8b5d71cd
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> 2017-07-19 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/81346 PR tree-optimization/81346
......
...@@ -13,6 +13,7 @@ do_test (void) ...@@ -13,6 +13,7 @@ do_test (void)
int int
main () main ()
{ {
#ifdef __BUILTIN_CPU_SUPPORTS__
/* Need 64-bit for 64-bit longs as single instruction. */ /* Need 64-bit for 64-bit longs as single instruction. */
if ( __builtin_cpu_supports ("ppc64") ) if ( __builtin_cpu_supports ("ppc64") )
{ {
...@@ -25,6 +26,6 @@ main () ...@@ -25,6 +26,6 @@ main ()
else else
printf ("SKIPPED\n"); printf ("SKIPPED\n");
#endif #endif
#endif /* __BUILTIN_CPU_SUPPORTS__ */
return 0; return 0;
} }
...@@ -13,6 +13,7 @@ do_test (void) ...@@ -13,6 +13,7 @@ do_test (void)
int int
main () main ()
{ {
#ifdef __BUILTIN_CPU_SUPPORTS__
/* The BMI2 test for pext test requires the Bit Permute doubleword /* The BMI2 test for pext test requires the Bit Permute doubleword
(bpermd) instruction added in PowerISA 2.06 along with the VSX (bpermd) instruction added in PowerISA 2.06 along with the VSX
facility. So we can test for arch_2_06. */ facility. So we can test for arch_2_06. */
...@@ -27,7 +28,7 @@ main () ...@@ -27,7 +28,7 @@ main ()
else else
printf ("SKIPPED\n"); printf ("SKIPPED\n");
#endif #endif
#endif /* __BUILTIN_CPU_SUPPORTS__ */
return 0; return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment