1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

Before assuming that the original code didn't work for Athlon64, the person who

replaced it with a FIXME should have determined what did work.  Then he would have
realized that the code was in fact correct, and would have avoided breaking it.

llvm-svn: 36173
This commit is contained in:
Jeff Cohen 2007-04-16 21:48:58 +00:00
parent 8e80b077c8
commit e6b60c9525

View File

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