1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

In the event that some really old non-Intel or -AMD CPU is encountered...

llvm-svn: 36177
This commit is contained in:
Jeff Cohen 2007-04-16 21:59:44 +00:00
parent a770b1aec2
commit 279c95b9a7

View File

@ -115,8 +115,11 @@ void X86Subtarget::AutoDetectSubtargetFeatures() {
if (ECX & 0x1) X86SSELevel = SSE3;
if ((ECX >> 9) & 0x1) X86SSELevel = SSSE3;
X86::GetCpuIDAndInfo(0x80000001, &EAX, &EBX, &ECX, &EDX);
HasX86_64 = (EDX >> 29) & 0x1;
if (memcmp(text.c, "GenuineIntel", 12) == 0 ||
memcmp(text.c, "AuthenticAMD", 12) == 0) {
X86::GetCpuIDAndInfo(0x80000001, &EAX, &EBX, &ECX, &EDX);
HasX86_64 = (EDX >> 29) & 0x1;
}
}
static const char *GetCurrentX86CPU() {