2018-03-08 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / bmi-check.h
blob1a9ad13f38cde7dc0fd71a793b14fc8e5d16ec1c
1 #include <stdio.h>
2 #include <stdlib.h>
4 static void bmi_test (void);
6 static void
7 __attribute__ ((noinline))
8 do_test (void)
10 bmi_test ();
13 int
14 main ()
16 #ifdef __BUILTIN_CPU_SUPPORTS__
17 /* Need 64-bit for 64-bit longs as single instruction. */
18 if ( __builtin_cpu_supports ("ppc64") )
20 do_test ();
21 #ifdef DEBUG
22 printf ("PASSED\n");
23 #endif
25 #ifdef DEBUG
26 else
27 printf ("SKIPPED\n");
28 #endif
29 #endif /* __BUILTIN_CPU_SUPPORTS__ */
30 return 0;