mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-18 11:20:03 +00:00
Revert earlier unnecessary hack. Make sure we correctly force on 64bit and cmov for 64-bit targets.
llvm-svn: 134768
This commit is contained in:
parent
1f0f41a820
commit
6de12d7388
@ -35,7 +35,7 @@ using namespace llvm;
|
||||
std::string X86_MC::ParseX86Triple(StringRef TT) {
|
||||
Triple TheTriple(TT);
|
||||
if (TheTriple.getArch() == Triple::x86_64)
|
||||
return "+64bit-mode,+64bit,+sse2";
|
||||
return "+64bit-mode";
|
||||
return "-64bit-mode";
|
||||
}
|
||||
|
||||
|
@ -269,9 +269,14 @@ X86Subtarget::X86Subtarget(const std::string &TT, const std::string &CPU,
|
||||
// Otherwise, use CPUID to auto-detect feature set.
|
||||
AutoDetectSubtargetFeatures();
|
||||
|
||||
// Make sure SSE2 is enabled; it is available on all X86-64 CPUs.
|
||||
if (In64BitMode && !HasAVX && X86SSELevel < SSE2)
|
||||
X86SSELevel = SSE2;
|
||||
// Make sure 64-bit features are available in 64-bit mode.
|
||||
if (In64BitMode) {
|
||||
HasX86_64 = true;
|
||||
HasCMov = true;
|
||||
|
||||
if (!HasAVX && X86SSELevel < SSE2)
|
||||
X86SSELevel = SSE2;
|
||||
}
|
||||
}
|
||||
|
||||
DEBUG(dbgs() << "Subtarget features: SSELevel " << X86SSELevel
|
||||
|
Loading…
x
Reference in New Issue
Block a user