OSDN Git Service

49bc0b308ab3642a7450646cb09b0a60dbbadb86
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.target / i386 / sse4_2-check.h
1 #include <stdio.h>
2 #include <stdlib.h>
3
4 #include "../../gcc.dg/i386-cpuid.h"
5
6 static void sse4_2_test (void);
7
8 int
9 main ()
10 {
11   unsigned long cpu_facilities;
12  
13   cpu_facilities = i386_cpuid_ecx ();
14
15   /* Run SSE4.2 test only if host has SSE4.2 support.  */
16   if ((cpu_facilities & bit_SSE4_2))
17     sse4_2_test ();
18
19   exit (0);
20 }