Skip to content

Commit 6004573

Browse files
committed
Add a description for AMD's bdver4 (aka Excavator).
This is just bdver3 + AVX2 + BMI2. llvm-svn: 207847
1 parent 10b1502 commit 6004573

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

llvm/lib/Support/Host.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,8 @@ StringRef sys::getHostCPUName() {
435435
case 21:
436436
if (!HasAVX) // If the OS doesn't support AVX provide a sane fallback.
437437
return "btver1";
438+
if (Model >= 0x50)
439+
return "bdver4"; // 50h-6Fh: Excavator
438440
if (Model >= 0x30)
439441
return "bdver3"; // 30h-3Fh: Steamroller
440442
if (Model >= 0x10)

llvm/lib/Target/X86/X86.td

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,13 @@ def : Proc<"bdver3", [FeatureXOP, FeatureFMA4, FeatureCMPXCHG16B,
329329
FeaturePOPCNT, FeatureBMI, FeatureTBM,
330330
FeatureFMA, FeatureFSGSBase]>;
331331

332+
// Excavator
333+
def : Proc<"bdver4", [FeatureAVX2, FeatureXOP, FeatureFMA4,
334+
FeatureCMPXCHG16B, FeatureAES, FeaturePRFCHW,
335+
FeaturePCLMUL, FeatureF16C, FeatureLZCNT,
336+
FeaturePOPCNT, FeatureBMI, FeatureBMI2,
337+
FeatureTBM, FeatureFMA, FeatureFSGSBase]>;
338+
332339
def : Proc<"geode", [Feature3DNowA]>;
333340

334341
def : Proc<"winchip-c6", [FeatureMMX]>;

0 commit comments

Comments
 (0)