* gcc.target/i386/pr70021.c: Add -mtune=skylake.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / sse2-check.h
blobfd4a6ce1dbf64f14028fc27f0882607cbb6c0c9f
1 #include <stdlib.h>
2 #include "cpuid.h"
3 #include "m128-check.h"
4 #include "sse-os-support.h"
6 static void sse2_test (void);
8 static void
9 __attribute__ ((noinline))
10 do_test (void)
12 sse2_test ();
15 int
16 main ()
18 unsigned int eax, ebx, ecx, edx;
20 if (!__get_cpuid (1, &eax, &ebx, &ecx, &edx))
21 return 0;
23 /* Run SSE2 test only if host has SSE2 support. */
24 if ((edx & bit_SSE2) && sse_os_support ())
25 do_test ();
27 return 0;