diff options
author | Craig Topper <craig.topper@intel.com> | 2017-10-11 20:35:43 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-10-11 20:35:43 +0000 |
commit | 974d3123218b8f417e0de5af37df30885045b5da (patch) | |
tree | 054fc8d01798b6b1453202a5e0f79270b63e9775 /lib/builtins/cpu_model.c | |
parent | 18d746da7abb4ada7601ed503990f6fcb9070161 (diff) |
[X86] Add Knights Mill CPU to cpu_indicator support to match libgcc.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@315505 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/builtins/cpu_model.c')
-rw-r--r-- | lib/builtins/cpu_model.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/builtins/cpu_model.c b/lib/builtins/cpu_model.c index 83ea7a49f..2fd39e15a 100644 --- a/lib/builtins/cpu_model.c +++ b/lib/builtins/cpu_model.c @@ -54,6 +54,7 @@ enum ProcessorTypes { AMD_BTVER1, AMD_BTVER2, AMDFAM17H, + INTEL_KNM, CPU_TYPE_MAX }; @@ -361,6 +362,10 @@ getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model, *Type = INTEL_KNL; // knl break; + case 0x85: + *Type = INTEL_KNM; // knm + break; + default: // Unknown family 6 CPU. break; break; |