Skip to content

Commit e972bdb

Browse files
authored
[X86] Add detection for more Tremont models (#67150)
Fix the issue that only the server series Tremont processors (Snow Ridge & Elkhart Lake) can be detected as Tremont, while the client series (Jasper Lake & Lakefield) will be guessed as Goldmont. Noted that Lakefield is missing some features compare to other Tremont processors, but those features are also missing on `FeatureTremont`, which shouldn't be a problem. Those features are `waitpkg`, `movdiri` and `movdir64b`.
1 parent d7195c5 commit e972bdb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

compiler-rt/lib/builtins/cpu_model.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,9 @@ getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model,
553553
*Type = INTEL_GOLDMONT_PLUS;
554554
break;
555555
case 0x86:
556+
case 0x8a: // Lakefield
557+
case 0x96: // Elkhart Lake
558+
case 0x9c: // Jasper Lake
556559
CPU = "tremont";
557560
*Type = INTEL_TREMONT;
558561
break;

llvm/lib/TargetParser/Host.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -913,6 +913,9 @@ getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model,
913913
*Type = X86::INTEL_GOLDMONT_PLUS;
914914
break;
915915
case 0x86:
916+
case 0x8a: // Lakefield
917+
case 0x96: // Elkhart Lake
918+
case 0x9c: // Jasper Lake
916919
CPU = "tremont";
917920
*Type = X86::INTEL_TREMONT;
918921
break;

0 commit comments

Comments
 (0)