aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-21 06:01:05 +0000
committerChris Lattner <sabre@nondot.org>2008-03-21 06:01:05 +0000
commitae60ddc22ad243ea9ae2f4353e143190063f2322 (patch)
tree29eb1895e4178d5a3791906cc55f393b8a43dd8c
parent0353526ed11fc308cf34465e4d14a6cadf8cfb62 (diff)
disable a bogus assertion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48633 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/X86/X86FloatingPoint.cpp4
-rw-r--r--test/CodeGen/X86/fp-stack-2results.ll10
2 files changed, 12 insertions, 2 deletions
diff --git a/lib/Target/X86/X86FloatingPoint.cpp b/lib/Target/X86/X86FloatingPoint.cpp
index d9ab1ed415..2070cc5d13 100644
--- a/lib/Target/X86/X86FloatingPoint.cpp
+++ b/lib/Target/X86/X86FloatingPoint.cpp
@@ -1022,8 +1022,8 @@ void FPS::handleSpecialFP(MachineBasicBlock::iterator &I) {
MachineOperand &Op = MI->getOperand(i);
if (!Op.isReg() || Op.getReg() < X86::FP0 || Op.getReg() > X86::FP6)
continue;
- assert(Op.isUse() && Op.isKill() &&
- "Ret only defs operands, and values aren't live beyond it");
+// assert(Op.isUse() && Op.isKill() &&
+// "Ret only defs operands, and values aren't live beyond it");
if (FirstFPRegOp == ~0U)
FirstFPRegOp = getFPReg(Op);
diff --git a/test/CodeGen/X86/fp-stack-2results.ll b/test/CodeGen/X86/fp-stack-2results.ll
index b44d3dd511..dcb2031a50 100644
--- a/test/CodeGen/X86/fp-stack-2results.ll
+++ b/test/CodeGen/X86/fp-stack-2results.ll
@@ -9,3 +9,13 @@ define {x86_fp80, x86_fp80} @test() {
ret x86_fp80 %A, x86_fp80 %B
}
+
+;_test2:
+; fld1
+; fld %st(0)
+; ret
+define {x86_fp80, x86_fp80} @test2() {
+ %A = fpext double 1.0 to x86_fp80
+ ret x86_fp80 %A, x86_fp80 %A
+}
+