[PATCH] D46323: [compiler-rt][X86][AMD][Bulldozer] Fix Bulldozer Model 2 detection.

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 1 10:55:57 PDT 2018


lebedev.ri updated this revision to Diff 144749.
lebedev.ri marked an inline comment as done.
lebedev.ri added a comment.

Update comment, too.


Repository:
  rL LLVM

https://reviews.llvm.org/D46323

Files:
  lib/builtins/cpu_model.c


Index: lib/builtins/cpu_model.c
===================================================================
--- lib/builtins/cpu_model.c
+++ lib/builtins/cpu_model.c
@@ -416,9 +416,9 @@
       *Subtype = AMDFAM15H_BDVER3;
       break; // "bdver3"; 30h-3Fh: Steamroller
     }
-    if (Model >= 0x10 && Model <= 0x1f) {
+    if ((Model >= 0x10 && Model <= 0x1f) || Model == 0x02) {
       *Subtype = AMDFAM15H_BDVER2;
-      break; // "bdver2"; 10h-1Fh: Piledriver
+      break; // "bdver2"; 02h, 10h-1Fh: Piledriver
     }
     if (Model <= 0x0f) {
       *Subtype = AMDFAM15H_BDVER1;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46323.144749.patch
Type: text/x-patch
Size: 578 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180501/e1353fc5/attachment.bin>


More information about the cfe-commits mailing list