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:
parent
18f153b33b
commit
747fc0efaa
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user