Skip to content

Commit b93f8ae

Browse files
committed
[X86] Add icelake-client and tremont model numbers to compiler-rt's implementation of __builtin_cpu_is.
llvm-svn: 361175
1 parent cac6b76 commit b93f8ae

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

compiler-rt/lib/builtins/cpu_model.c

+9
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,12 @@ static void getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model,
362362
*Subtype = INTEL_COREI7_CANNONLAKE; // "cannonlake"
363363
break;
364364

365+
// Icelake:
366+
case 0x7e:
367+
*Type = INTEL_COREI7;
368+
*Subtype = INTEL_COREI7_ICELAKE_CLIENT; // "icelake-client"
369+
break;
370+
365371
case 0x1c: // Most 45 nm Intel Atom processors
366372
case 0x26: // 45 nm Atom Lincroft
367373
case 0x27: // 32 nm Atom Medfield
@@ -387,6 +393,9 @@ static void getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model,
387393
case 0x7a:
388394
*Type = INTEL_GOLDMONT_PLUS;
389395
break;
396+
case 0x86:
397+
*Type = INTEL_TREMONT;
398+
break;
390399

391400
case 0x57:
392401
*Type = INTEL_KNL; // knl

0 commit comments

Comments
 (0)