mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Revert earlier unnecessary hack. Make sure we correctly force on 64bit and cmov for 64-bit targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134768 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
eb0caa1154
commit
6dfef6605f
@ -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