mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Enable automatic detection of FMA3 support to allow intrinsics to be used.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157805 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3a8172ad8d
commit
14f094bb2b
@ -205,12 +205,10 @@ void X86Subtarget::AutoDetectSubtargetFeatures() {
|
||||
HasPCLMUL = true;
|
||||
ToggleFeature(X86::FeaturePCLMUL);
|
||||
}
|
||||
// FMA3 autodetection is switched off until we have a special flag
|
||||
// in code generator
|
||||
//if ((ECX >> 12) & 0x1) {
|
||||
// HasFMA3 = true;
|
||||
// ToggleFeature(X86::FeatureFMA3);
|
||||
//}
|
||||
if ((ECX >> 12) & 0x1) {
|
||||
HasFMA3 = true;
|
||||
ToggleFeature(X86::FeatureFMA3);
|
||||
}
|
||||
if (IsIntel && ((ECX >> 22) & 0x1)) {
|
||||
HasMOVBE = true;
|
||||
ToggleFeature(X86::FeatureMOVBE);
|
||||
|
Loading…
Reference in New Issue
Block a user