[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelLowering.cpp
Chris Lattner
sabre at nondot.org
Sun Feb 25 14:24:03 PST 2007
Changes in directory llvm/lib/Target/X86:
X86ISelLowering.cpp updated: 1.335 -> 1.336
---
Log message:
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.
---
Diffs of the changes: (+1 -1)
X86ISelLowering.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Target/X86/X86ISelLowering.cpp
diff -u llvm/lib/Target/X86/X86ISelLowering.cpp:1.335 llvm/lib/Target/X86/X86ISelLowering.cpp:1.336
--- llvm/lib/Target/X86/X86ISelLowering.cpp:1.335 Sun Feb 25 03:31:16 2007
+++ llvm/lib/Target/X86/X86ISelLowering.cpp Sun Feb 25 16:23:46 2007
@@ -456,7 +456,7 @@
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.
More information about the llvm-commits
mailing list