Don't assert on 'select_cc SETUO'

llvm-svn: 25423
This commit is contained in:
Chris Lattner 2006-01-18 19:42:35 +00:00
parent 00a483f966
commit 23da2dc2ac

View 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);