aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-01-18 19:42:35 +0000
committerChris Lattner <sabre@nondot.org>2006-01-18 19:42:35 +0000
commitbc38dbfd9b88c021378c647f6c169f4f76a775da (patch)
tree7a047d58c1d7b9bd3de47faf52acacf38f724233
parentc16257f05391b8aeccef62d6b543f1cb5a8185fe (diff)
Don't assert on 'select_cc SETUO'
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25423 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.cpp b/lib/Target/PowerPC/PPCISelLowering.cpp
index b41ef3fcaf..decc6a388a 100644
--- a/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -238,7 +238,7 @@ SDOperand PPCTargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
// subtraction at all.
if (isFloatingPointZero(RHS))
switch (CC) {
- default: assert(0 && "Invalid FSEL condition"); abort();
+ default: break; // SETUO etc aren't handled by fsel.
case ISD::SETULT:
case ISD::SETLT:
std::swap(TV, FV); // fsel is natively setge, swap operands for setlt
@@ -260,7 +260,7 @@ SDOperand PPCTargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
SDOperand Cmp;
switch (CC) {
- default: assert(0 && "Invalid FSEL condition"); abort();
+ default: break; // SETUO etc aren't handled by fsel.
case ISD::SETULT:
case ISD::SETLT:
Cmp = DAG.getNode(ISD::FSUB, CmpVT, LHS, RHS);