2007-05-22 H.J. Lu <hongjiu.lu@intel.com>
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sse4_1-check.h
bloba20a760e64bf546e80679ac0f1ffb25a64d98230
1 #include <stdio.h>
2 #include <stdlib.h>
4 #include "../../gcc.dg/i386-cpuid.h"
6 static void sse4_1_test (void);
8 int
9 main ()
11 unsigned long cpu_facilities;
13 cpu_facilities = i386_cpuid_ecx ();
15 /* Run SSE4.1 test only if host has SSE4.1 support. */
16 if ((cpu_facilities & bit_SSE4_1))
17 sse4_1_test ();
19 exit (0);