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 8c756a9ded
commit 6f3a548ff4
1 changed files with 5 additions and 2 deletions

View File

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