2 /* { dg-require-effective-target avx } */
3 /* { dg-options "-O3 -mavx" } */
7 #include "m256-check.h"
8 #include "avx-os-support.h"
10 static void __attribute__((constructor
))
13 unsigned int eax
, ebx
, ecx
, edx
;
15 if (!__get_cpuid (1, &eax
, &ebx
, &ecx
, &edx
))
18 /* Run AVX test only if host has AVX support. */
19 if (((ecx
& (bit_AVX
| bit_OSXSAVE
)) == (bit_AVX
| bit_OSXSAVE
))
45 for (i
= 0; i
< 6; i
++)
47 for (f
= 0; f
< 10; f
++)
50 h
= m
== 0 ? 1 : 5 % m
;