1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-21 18:22:53 +01:00

lib/Support: Detect AVX-512 on Alderlake CPUs

This commit is contained in:
Ani 2021-11-04 17:28:24 +00:00 committed by Ivan
parent 18f153b33b
commit 747fc0efaa

View File

@ -777,13 +777,21 @@ getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model,
case 0x8d:
CPU = "tigerlake";
*Type = X86::INTEL_COREI7;
*Subtype = X86::INTEL_COREI7_TIGERLAKE;
break;
// Alderlake:
case 0x97:
case 0x9a:
CPU = "alderlake";
*Type = X86::INTEL_COREI7;
// Alderlake has AVX-512 when the E-cores are disabled
if (testFeature(X86::FEATURE_AVX512VBMI2)) {
CPU = "rocketlake";
*Subtype = X86::INTEL_COREI7_ROCKETLAKE;
} else {
CPU = "alderlake";
*Subtype = X86::INTEL_COREI7_ALDERLAKE;
}
break;
// Icelake Xeon: