mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Add AVX-512 and related features to the CPUID detection code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188745 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b5e1d5b46f
commit
3b7722cf3a
@ -351,14 +351,30 @@ void X86Subtarget::AutoDetectSubtargetFeatures() {
|
||||
HasRTM = true;
|
||||
ToggleFeature(X86::FeatureRTM);
|
||||
}
|
||||
if (IsIntel && ((EBX >> 19) & 0x1)) {
|
||||
HasADX = true;
|
||||
ToggleFeature(X86::FeatureADX);
|
||||
if (IsIntel && ((EBX >> 16) & 0x1)) {
|
||||
X86SSELevel = AVX512;
|
||||
ToggleFeature(X86::FeatureAVX512);
|
||||
}
|
||||
if (IsIntel && ((EBX >> 18) & 0x1)) {
|
||||
HasRDSEED = true;
|
||||
ToggleFeature(X86::FeatureRDSEED);
|
||||
}
|
||||
if (IsIntel && ((EBX >> 19) & 0x1)) {
|
||||
HasADX = true;
|
||||
ToggleFeature(X86::FeatureADX);
|
||||
}
|
||||
if (IsIntel && ((EBX >> 26) & 0x1)) {
|
||||
HasPFI = true;
|
||||
ToggleFeature(X86::FeaturePFI);
|
||||
}
|
||||
if (IsIntel && ((EBX >> 27) & 0x1)) {
|
||||
HasERI = true;
|
||||
ToggleFeature(X86::FeatureERI);
|
||||
}
|
||||
if (IsIntel && ((EBX >> 28) & 0x1)) {
|
||||
HasCDI = true;
|
||||
ToggleFeature(X86::FeatureCDI);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user