Add definitions for AMD's bobcat (aka btver1)

llvm-svn: 147846
This commit is contained in:
Benjamin Kramer 2012-01-10 11:50:02 +00:00
parent 86131f2c8d
commit 077ae1d760
2 changed files with 7 additions and 0 deletions

View File

@ -298,6 +298,8 @@ std::string sys::getHostCPUName() {
} }
case 16: case 16:
return "amdfam10"; return "amdfam10";
case 20:
return "btver1";
case 21: case 21:
return "bdver1"; return "bdver1";
default: default:

View File

@ -204,10 +204,15 @@ def : Proc<"athlon64-sse3", [FeatureSSE3, Feature3DNowA, FeatureCMPXCHG16B,
def : Proc<"amdfam10", [FeatureSSE3, FeatureSSE4A, def : Proc<"amdfam10", [FeatureSSE3, FeatureSSE4A,
Feature3DNowA, FeatureCMPXCHG16B, FeatureLZCNT, Feature3DNowA, FeatureCMPXCHG16B, FeatureLZCNT,
FeaturePOPCNT, FeatureSlowBTMem]>; FeaturePOPCNT, FeatureSlowBTMem]>;
// Bobcat
def : Proc<"btver1", [FeatureSSSE3, FeatureSSE4A, FeatureCMPXCHG16B,
FeatureLZCNT, FeaturePOPCNT]>;
// FIXME: Disabling AVX/FMA4 for now since it's not ready. // FIXME: Disabling AVX/FMA4 for now since it's not ready.
// Bulldozer
def : Proc<"bdver1", [FeatureSSE42, FeatureSSE4A, FeatureCMPXCHG16B, def : Proc<"bdver1", [FeatureSSE42, FeatureSSE4A, FeatureCMPXCHG16B,
FeatureAES, FeatureCLMUL, FeatureAES, FeatureCLMUL,
FeatureXOP, FeatureLZCNT, FeaturePOPCNT]>; FeatureXOP, FeatureLZCNT, FeaturePOPCNT]>;
// Enhanced Bulldozer
def : Proc<"bdver2", [FeatureSSE42, FeatureSSE4A, FeatureCMPXCHG16B, def : Proc<"bdver2", [FeatureSSE42, FeatureSSE4A, FeatureCMPXCHG16B,
FeatureAES, FeatureCLMUL, FeatureAES, FeatureCLMUL,
FeatureXOP, FeatureF16C, FeatureLZCNT, FeatureXOP, FeatureF16C, FeatureLZCNT,