diff options
author | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2012-05-31 09:20:20 +0000 |
---|---|---|
committer | Elena Demikhovsky <elena.demikhovsky@intel.com> | 2012-05-31 09:20:20 +0000 |
commit | 177cf1e1a3685209ab805f82897902a8d2b61661 (patch) | |
tree | 58479453e7cd6a7ff6cb16b33571e6d96d8b9a31 /lib/Target/X86/X86Subtarget.cpp | |
parent | 53b4177df78401da23468f49ad0bc056e9acb627 (diff) |
Added FMA3 Intel instructions.
I disabled FMA3 autodetection, since the result may differ from expected for some benchmarks.
I added tests for GodeGen and intrinsics.
I did not change llvm.fma.f32/64 - it may be done later.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r-- | lib/Target/X86/X86Subtarget.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index 7970268b2d..3e00f50ec4 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/lib/Target/X86/X86Subtarget.cpp @@ -205,10 +205,12 @@ void X86Subtarget::AutoDetectSubtargetFeatures() { HasCLMUL = true; ToggleFeature(X86::FeatureCLMUL); } - if ((ECX >> 12) & 0x1) { - HasFMA3 = true; - ToggleFeature(X86::FeatureFMA3); - } + // FMA3 autodetection is switched off until we have a special flag + // in code generator + //if ((ECX >> 12) & 0x1) { + // HasFMA3 = true; + // ToggleFeature(X86::FeatureFMA3); + //} if (IsIntel && ((ECX >> 22) & 0x1)) { HasMOVBE = true; ToggleFeature(X86::FeatureMOVBE); |