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:
Chris Lattner 2007-02-25 22:23:46 +00:00
parent 39a72143cb
commit 3e0703357f
1 changed files with 1 additions and 1 deletions

View File

@ -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.