Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / mmx-check.h
blobe08077f6d80d66f5fe4018b23a217f4c90afcb1b
1 #include <stdio.h>
2 #include <stdlib.h>
4 static void mmx_test (void);
6 static void
7 __attribute__ ((noinline))
8 do_test (void)
10 mmx_test ();
13 int
14 main ()
16 #ifdef __BUILTIN_CPU_SUPPORTS__
17 /* Many MMX intrinsics are simpler / faster to implement by
18 transferring the __m64 (long int) to vector registers for SIMD
19 operations. To be efficient we also need the direct register
20 transfer instructions from POWER8. So we can test for
21 arch_2_07. */
22 if ( __builtin_cpu_supports ("arch_2_07") )
24 do_test ();
25 #ifdef DEBUG
26 printf ("PASSED\n");
27 #endif
29 #ifdef DEBUG
30 else
31 printf ("SKIPPED\n");
32 #endif
33 #endif /* __BUILTIN_CPU_SUPPORTS__ */
34 return 0;