X86: Add a subtarget definition for core-avx-i, which is GCC's name for ivy bridge.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 10 Oct 2011 19:35:07 +0000 (19:35 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 10 Oct 2011 19:35:07 +0000 (19:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141571 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86.td

index 4505dafcbfe313f429fbc17d73cb6ab8d81f54f9..85376066da41fce0e16f25b5199ad8c7378eb38b 100644 (file)
@@ -145,11 +145,16 @@ def : Proc<"nehalem",         [FeatureSSE42,  FeatureCMPXCHG16B,
 def : Proc<"westmere",        [FeatureSSE42, FeatureCMPXCHG16B,
                                FeatureSlowBTMem, FeatureFastUAMem, FeatureAES,
                                FeatureCLMUL]>;
+// Sandy Bridge
 // 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<"corei7-avx",      [FeatureSSE42, FeatureCMPXCHG16B,
                                FeatureAES, FeatureCLMUL]>;
+// Ivy Bridge
+def : Proc<"core-avx-i",      [FeatureSSE42, FeatureCMPXCHG16B,
+                               FeatureAES, FeatureCLMUL,
+                               FeatureRDRAND, FeatureF16C]>;
 
 def : Proc<"k6",              [FeatureMMX]>;
 def : Proc<"k6-2",            [Feature3DNow]>;