cpuinfo/i386: Detect GFNI as an AVX extension
We won't use the SSE GFNI instructions, so delay detection until we know AVX is present. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
27ea28a0b3
commit
b8eb3dd495
3 changed files with 5 additions and 0 deletions
|
|
@ -50,6 +50,7 @@ unsigned __attribute__((constructor)) cpuinfo_init(void)
|
|||
if ((bv & 6) == 6) {
|
||||
info |= CPUINFO_AVX1;
|
||||
info |= (b7 & bit_AVX2 ? CPUINFO_AVX2 : 0);
|
||||
info |= (c7 & bit_GFNI ? CPUINFO_GFNI : 0);
|
||||
|
||||
if ((bv & 0xe0) == 0xe0) {
|
||||
info |= (b7 & bit_AVX512F ? CPUINFO_AVX512F : 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue