Rename the "sandybridge" subtarget to "corei7-avx", for GCC compatibility.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 20 May 2011 15:11:26 +0000 (15:11 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 20 May 2011 15:11:26 +0000 (15:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131730 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Host.cpp
lib/Target/X86/X86.td
test/CodeGen/X86/vec_uint_to_fp.ll

index 911c64accec389587805493321114fd42841b2c7..5d1ad92e237dd05024902dd26c4341c79bf9918f 100644 (file)
@@ -215,7 +215,7 @@ std::string sys::getHostCPUName() {
       case 37: // Intel Core i7, laptop version.
         return "corei7";
       case 42: // SandyBridge
-        return "sandybridge";
+        return "corei7-avx";
 
       case 28: // Intel Atom processor. All processors are manufactured using
                // the 45 nm process
index f9fd4eb83de6fac5c815b7a87848d8dc9d0d6010..7bb96766cceb22e817c1beedba429219e77006aa 100644 (file)
@@ -124,7 +124,7 @@ def : Proc<"westmere",        [FeatureSSE42,  Feature64Bit, FeatureSlowBTMem,
 // SSE is not listed here since llvm treats AVX as a reimplementation of SSE,
 // rather than a superset.
 // FIXME: Disabling AVX for now since it's not ready.
-def : Proc<"sandybridge",     [FeatureSSE42, Feature64Bit,
+def : Proc<"corei7-avx",      [FeatureSSE42, Feature64Bit,
                                FeatureAES, FeatureCLMUL]>;
 
 def : Proc<"k6",              [FeatureMMX]>;
index 39e7d715c5bb77ac05d64d1a392a4d98288232d0..fe7fa2fe67d58218acd2d4994ac263e6c4611ba2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llc < %s -march=x86 -mcpu=sandybridge | FileCheck %s
+; RUN: llc < %s -march=x86 -mcpu=corei7-avx | FileCheck %s
 
 ; Test that we are not lowering uinttofp to scalars
 define <4 x float> @test1(<4 x i32> %A) nounwind {