mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-05 17:39:16 +00:00
Change XOP detection to use the correct CPUID bit instead of using the FMA4 bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147348 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8493e39014
commit
5ebee4494b
@ -266,15 +266,19 @@ void X86Subtarget::AutoDetectSubtargetFeatures() {
|
||||
HasLZCNT = true;
|
||||
ToggleFeature(X86::FeatureLZCNT);
|
||||
}
|
||||
if (IsAMD && ((ECX >> 6) & 0x1)) {
|
||||
HasSSE4A = true;
|
||||
ToggleFeature(X86::FeatureSSE4A);
|
||||
}
|
||||
if (IsAMD && ((ECX >> 16) & 0x1)) {
|
||||
HasFMA4 = true;
|
||||
ToggleFeature(X86::FeatureFMA4);
|
||||
HasXOP = true;
|
||||
ToggleFeature(X86::FeatureXOP);
|
||||
if (IsAMD) {
|
||||
if ((ECX >> 6) & 0x1) {
|
||||
HasSSE4A = true;
|
||||
ToggleFeature(X86::FeatureSSE4A);
|
||||
}
|
||||
if ((ECX >> 11) & 0x1) {
|
||||
HasXOP = true;
|
||||
ToggleFeature(X86::FeatureXOP);
|
||||
}
|
||||
if ((ECX >> 16) & 0x1) {
|
||||
HasFMA4 = true;
|
||||
ToggleFeature(X86::FeatureFMA4);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user