[llvm-branch-commits] [llvm-branch] r123257 - in /llvm/branches/Apple/Hartnell/lib/Target/X86: X86.td X86Subtarget.cpp

Bill Wendling isanbard at gmail.com
Tue Jan 11 11:36:24 PST 2011


Author: void
Date: Tue Jan 11 13:36:24 2011
New Revision: 123257

URL: http://llvm.org/viewvc/llvm-project?rev=123257&view=rev
Log:
Disable unfinished AVX; Hartnell version of r121677.  Radar 8753496.

Modified:
    llvm/branches/Apple/Hartnell/lib/Target/X86/X86.td
    llvm/branches/Apple/Hartnell/lib/Target/X86/X86Subtarget.cpp

Modified: llvm/branches/Apple/Hartnell/lib/Target/X86/X86.td
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hartnell/lib/Target/X86/X86.td?rev=123257&r1=123256&r2=123257&view=diff
==============================================================================
--- llvm/branches/Apple/Hartnell/lib/Target/X86/X86.td (original)
+++ llvm/branches/Apple/Hartnell/lib/Target/X86/X86.td Tue Jan 11 13:36:24 2011
@@ -114,7 +114,7 @@
                                 FeatureFastUAMem, FeatureAES]>;
 // Sandy Bridge does not have FMA
 // FIXME: Wikipedia says it does... it should have AES as well.
-def : Proc<"sandybridge",     [FeatureSSE42,  FeatureAVX,   Feature64Bit]>;
+def : Proc<"sandybridge",     [FeatureSSE42,  Feature64Bit, FeatureAES]>;
 
 def : Proc<"k6",              [FeatureMMX]>;
 def : Proc<"k6-2",            [FeatureMMX,    Feature3DNow]>;

Modified: llvm/branches/Apple/Hartnell/lib/Target/X86/X86Subtarget.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hartnell/lib/Target/X86/X86Subtarget.cpp?rev=123257&r1=123256&r2=123257&view=diff
==============================================================================
--- llvm/branches/Apple/Hartnell/lib/Target/X86/X86Subtarget.cpp (original)
+++ llvm/branches/Apple/Hartnell/lib/Target/X86/X86Subtarget.cpp Tue Jan 11 13:36:24 2011
@@ -258,7 +258,8 @@
   bool IsAMD   = !IsIntel && memcmp(text.c, "AuthenticAMD", 12) == 0;
 
   HasFMA3 = IsIntel && ((ECX >> 12) & 0x1);
-  HasAVX = ((ECX >> 28) & 0x1);
+  // FIXME: AVX codegen support is not ready.
+  //HasAVX = ((ECX >> 28) & 0x1);
   HasAES = IsIntel && ((ECX >> 25) & 0x1);
 
   if (IsIntel || IsAMD) {





More information about the llvm-branch-commits mailing list