1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-10-13 11:10:39 +00:00

Detect AVX512VBMI and AVX512VBMI2 features on Intel CPUs

More information: https://en.wikichip.org/wiki/x86/avx-512
Resolve #134
This commit is contained in:
Xorg 2020-05-18 22:00:51 +02:00
commit 180154f03d
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A
7 changed files with 430 additions and 0 deletions

View file

@ -686,6 +686,8 @@ const char* cpu_feature_str(cpu_feature_t feature)
{ CPU_FEATURE_RDSEED, "rdseed" },
{ CPU_FEATURE_ADX, "adx" },
{ CPU_FEATURE_AVX512VNNI, "avx512_vnni" },
{ CPU_FEATURE_AVX512VBMI, "avx512_vbmi" },
{ CPU_FEATURE_AVX512VBMI2, "avx512_vbmi2" },
};
unsigned i, n = COUNT_OF(matchtable);
if (n != NUM_CPU_FEATURES) {