Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
gcc.target
/
i386
/
avx512f-os-support.h
blob: deefa5e1105d720e8eea00b416632072a9f33ddf [
file
] [
log
] [
blame
]
/* Check if the OS supports executing AVX512F instructions. */
static
int
avx512f_os_support
(
void
)
{
unsigned
int
eax
,
edx
;
__asm__
(
"xgetbv"
:
"=a"
(
eax
),
"=d"
(
edx
)
:
"c"
(
0
));
return
(
eax
&
230
)
==
230
;
}