From 077ae1d76036ae55aafab89e41ea2e48f3083a22 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Tue, 10 Jan 2012 11:50:02 +0000 Subject: [PATCH] Add definitions for AMD's bobcat (aka btver1) llvm-svn: 147846 --- llvm/lib/Support/Host.cpp | 2 ++ llvm/lib/Target/X86/X86.td | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/llvm/lib/Support/Host.cpp b/llvm/lib/Support/Host.cpp index 86d1c5d3414a..3f3cdca27f0e 100644 --- a/llvm/lib/Support/Host.cpp +++ b/llvm/lib/Support/Host.cpp @@ -298,6 +298,8 @@ std::string sys::getHostCPUName() { } case 16: return "amdfam10"; + case 20: + return "btver1"; case 21: return "bdver1"; default: diff --git a/llvm/lib/Target/X86/X86.td b/llvm/lib/Target/X86/X86.td index 91fe227b21cb..c76d4e51db98 100644 --- a/llvm/lib/Target/X86/X86.td +++ b/llvm/lib/Target/X86/X86.td @@ -204,10 +204,15 @@ def : Proc<"athlon64-sse3", [FeatureSSE3, Feature3DNowA, FeatureCMPXCHG16B, def : Proc<"amdfam10", [FeatureSSE3, FeatureSSE4A, Feature3DNowA, FeatureCMPXCHG16B, FeatureLZCNT, FeaturePOPCNT, FeatureSlowBTMem]>; +// Bobcat +def : Proc<"btver1", [FeatureSSSE3, FeatureSSE4A, FeatureCMPXCHG16B, + FeatureLZCNT, FeaturePOPCNT]>; // FIXME: Disabling AVX/FMA4 for now since it's not ready. +// Bulldozer def : Proc<"bdver1", [FeatureSSE42, FeatureSSE4A, FeatureCMPXCHG16B, FeatureAES, FeatureCLMUL, FeatureXOP, FeatureLZCNT, FeaturePOPCNT]>; +// Enhanced Bulldozer def : Proc<"bdver2", [FeatureSSE42, FeatureSSE4A, FeatureCMPXCHG16B, FeatureAES, FeatureCLMUL, FeatureXOP, FeatureF16C, FeatureLZCNT,