3 #include "m256-check.h"
4 #include "avx-os-support.h"
6 static void avx2_test (void);
8 static void __attribute__ ((noinline
)) do_test (void)
16 unsigned int eax
, ebx
, ecx
, edx
;
18 __cpuid (1, eax
, ebx
, ecx
, edx
);
19 return (ecx
& bit_OSXSAVE
) != 0;
25 unsigned int eax
, ebx
, ecx
, edx
;
27 if (!__get_cpuid_count (7, 0, &eax
, &ebx
, &ecx
, &edx
))
30 /* Run AVX2 test only if host has AVX2 support. */
31 if (check_osxsave () && (ebx
& bit_AVX2
) && avx_os_support ())