3 #include "m512-check.h"
4 #include "avx512f-os-support.h"
6 static void avx512er_test (void);
8 static void __attribute__ ((noinline
)) do_test (void)
16 unsigned int eax
, ebx
, ecx
, edx
;
18 if (!__get_cpuid (1, &eax
, &ebx
, &ecx
, &edx
))
21 if ((ecx
& bit_OSXSAVE
) == (bit_OSXSAVE
))
23 if (__get_cpuid_max (0, NULL
) < 7)
26 __cpuid_count (7, 0, eax
, ebx
, ecx
, edx
);
28 if ((avx512f_os_support ()) && ((ebx
& bit_AVX512ER
) == bit_AVX512ER
))