diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-12-13 04:23:53 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-12-13 04:23:53 +0000 |
commit | de7f92083569dd5dde89a7fd75cd1a4c8b5b9794 (patch) | |
tree | bff92741b48f47bfbc361c019894f98b2b4ca93e /lib | |
parent | 662269d2abb2f220c3a9b727c2a948246128cd05 (diff) | |
download | external_llvm-de7f92083569dd5dde89a7fd75cd1a4c8b5b9794.zip external_llvm-de7f92083569dd5dde89a7fd75cd1a4c8b5b9794.tar.gz external_llvm-de7f92083569dd5dde89a7fd75cd1a4c8b5b9794.tar.bz2 |
Disable auto-detection of AVX support since AVX codegen support is not ready.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86.td | 4 | ||||
-rw-r--r-- | lib/Target/X86/X86Subtarget.cpp | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/Target/X86/X86.td b/lib/Target/X86/X86.td index 77d3d56..efb6c8c 100644 --- a/lib/Target/X86/X86.td +++ b/lib/Target/X86/X86.td @@ -120,7 +120,9 @@ def : Proc<"westmere", [FeatureSSE42, Feature64Bit, FeatureSlowBTMem, FeatureFastUAMem, FeatureAES, FeatureCLMUL]>; // SSE is not listed here since llvm treats AVX as a reimplementation of SSE, // rather than a superset. -def : Proc<"sandybridge", [FeatureAVX, FeatureAES, FeatureCLMUL, Feature64Bit]>; +// FIXME: Disabling AVX for now since it's not ready. +def : Proc<"sandybridge", [FeatureSSE42, Feature64Bit, + FeatureAES, FeatureCLMUL]>; def : Proc<"k6", [FeatureMMX]>; def : Proc<"k6-2", [FeatureMMX, Feature3DNow]>; diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp index c251984..b72cae6 100644 --- a/lib/Target/X86/X86Subtarget.cpp +++ b/lib/Target/X86/X86Subtarget.cpp @@ -256,7 +256,8 @@ void X86Subtarget::AutoDetectSubtargetFeatures() { if ((ECX >> 9) & 1) X86SSELevel = SSSE3; if ((ECX >> 19) & 1) X86SSELevel = SSE41; if ((ECX >> 20) & 1) X86SSELevel = SSE42; - if ((ECX >> 28) & 1) { HasAVX = true; X86SSELevel = NoMMXSSE; } + // FIXME: AVX codegen support is not ready. + //if ((ECX >> 28) & 1) { HasAVX = true; X86SSELevel = NoMMXSSE; } bool IsIntel = memcmp(text.c, "GenuineIntel", 12) == 0; bool IsAMD = !IsIntel && memcmp(text.c, "AuthenticAMD", 12) == 0; |