Index: lib/Support/Host.cpp =================================================================== --- lib/Support/Host.cpp +++ lib/Support/Host.cpp @@ -832,19 +832,17 @@ break; // "btver1"; case 21: *Type = X86::AMDFAM15H; - if (Model >= 0x60 && Model <= 0x7f) { + switch (Model) { + case 4: *Subtype = X86::AMDFAM15H_BDVER4; break; // "bdver4"; 60h-7Fh: Excavator - } - if (Model >= 0x30 && Model <= 0x3f) { + case 3: *Subtype = X86::AMDFAM15H_BDVER3; break; // "bdver3"; 30h-3Fh: Steamroller - } - if (Model >= 0x10 && Model <= 0x1f) { + case 2: *Subtype = X86::AMDFAM15H_BDVER2; break; // "bdver2"; 10h-1Fh: Piledriver - } - if (Model <= 0x0f) { + case 1: *Subtype = X86::AMDFAM15H_BDVER1; break; // "bdver1"; 00h-0Fh: Bulldozer }