mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
Add ADX CPUID detection
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178299 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8e4cd40b27
commit
5a8386e1df
@ -330,6 +330,10 @@ void X86Subtarget::AutoDetectSubtargetFeatures() {
|
||||
HasRTM = true;
|
||||
ToggleFeature(X86::FeatureRTM);
|
||||
}
|
||||
if (IsIntel && ((EBX >> 19) & 0x1)) {
|
||||
HasADX = true;
|
||||
ToggleFeature(X86::FeatureADX);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user