mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-06 09:39:28 +00:00
[X86] Change getHostCPUName fallback code to not select 'x86-64' for unknown CPUs in family 6 that has 64-bit support but not any newer SSE features. Use 'core2' instead
We know that's the earliest CPU with 64-bit support. x86-64 has taken on a role of representing a more modern 64-bit CPU so we probably shouldn't be using that when we can't identify things. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317229 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2f759d471a
commit
161385fddd
@ -794,8 +794,13 @@ getIntelProcessorTypeAndSubtype(unsigned Family, unsigned Model,
|
||||
break;
|
||||
}
|
||||
if (Features2 & (1 << (FEATURE_EM64T - 32))) {
|
||||
*Type = INTEL_X86_64;
|
||||
break; // x86-64
|
||||
*Type = INTEL_CORE2; // "core2"
|
||||
*Subtype = INTEL_CORE2_65;
|
||||
break;
|
||||
}
|
||||
if (Features & (1 << FEATURE_SSE3)) {
|
||||
*Type = INTEL_CORE_DUO;
|
||||
break;
|
||||
}
|
||||
if (Features & (1 << FEATURE_SSE2)) {
|
||||
*Type = INTEL_PENTIUM_M;
|
||||
|
Loading…
x
Reference in New Issue
Block a user