Don't assert on 'select_cc SETUO'
authorChris Lattner <sabre@nondot.org>
Wed, 18 Jan 2006 19:42:35 +0000 (19:42 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 18 Jan 2006 19:42:35 +0000 (19:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25423 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index b41ef3fcaf8fe8fbe6f6b615fdab76b93caa87a3..decc6a388aaa0253765412269224eb66f96f9a61 100644 (file)
@@ -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);