[X86] Correct the BDVER4 model numbers to include 0x70-0x7f.
authorCraig Topper <craig.topper@intel.com>
Sat, 8 Jul 2017 06:44:35 +0000 (06:44 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 8 Jul 2017 06:44:35 +0000 (06:44 +0000)
According to wikipedia and some other googling suggests these should also be considered as BDVER4.

llvm-svn: 307466

llvm/lib/Support/Host.cpp

index 42b71ad..a552a1e 100644 (file)
@@ -915,7 +915,7 @@ static void getAMDProcessorTypeAndSubtype(unsigned Family, unsigned Model,
       *Subtype = AMD_BTVER1;
       break; // "btver1"
     }
-    if (Model >= 0x50 && Model <= 0x6f) {
+    if (Model >= 0x60 && Model <= 0x7f) {
       *Subtype = AMDFAM15H_BDVER4;
       break; // "bdver4"; 50h-6Fh: Excavator
     }