mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 12:55:45 +00:00
fix CodeGen/X86/2007-02-25-FastCCStack.ll, a regression from my patch last
night: fastcc returns should only go in XMM0 if we have SSE2 or above. llvm-svn: 34613
This commit is contained in:
parent
4d419b02ec
commit
15c167cc61
@ -456,7 +456,7 @@ static void GetRetValueLocs(const MVT::ValueType *VTs, unsigned NumVTs,
|
||||
case MVT::f64:
|
||||
if (Subtarget->is64Bit())
|
||||
Reg = X86::XMM0; // FP values in X86-64 go in XMM0.
|
||||
else if (CC == CallingConv::Fast)
|
||||
else if (CC == CallingConv::Fast && Subtarget->hasSSE2())
|
||||
Reg = X86::XMM0; // FP values in X86-32 with fastcc go in XMM0.
|
||||
else
|
||||
Reg = X86::ST0; // FP values in X86-32 go in ST0.
|
||||
|
Loading…
x
Reference in New Issue
Block a user