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

Phabricator via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 1 11:44:05 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL331295: [compiler-rt][X86][AMD][Bulldozer] Fix Bulldozer Model 2 detection. (authored by lebedevri, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D46323?vs=144749&id=144762#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D46323

Files:
  compiler-rt/trunk/lib/builtins/cpu_model.c


Index: compiler-rt/trunk/lib/builtins/cpu_model.c
===================================================================
--- compiler-rt/trunk/lib/builtins/cpu_model.c
+++ compiler-rt/trunk/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.144762.patch
Type: text/x-patch
Size: 632 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180501/db3c5cb0/attachment.bin>


More information about the cfe-commits mailing list