MandarinISelLowering.cpp
// FPCondCCodeToFCC - Convert a DAG floatingp oint condition code to a Mandarin CC condition.

Convert a DAG floatingp oint condition code to a Mandarin CC condition.
Convert a DAG floatingp oint condition code to a Mandarin CC condition .
static MDCC::CondCodes DAGFloatCCToMDCC(ISD::CondCode CC) {
  switch (CC) {
  default:
	  llvm_unreachable("Unknown fp condition code!");
  case ISD::SETEQ:
  case ISD::SETOEQ: return MDCC::COND_EQ;
  case ISD::SETNE:
  case ISD::SETUNE: return MDCC::COND_NE;
  case ISD::SETLT:
  case ISD::SETOLT: return MDCC::COND_LS;
  case ISD::SETGT:
  case ISD::SETOGT: return MDCC::COND_GR;
  case ISD::SETLE:
  case ISD::SETOLE: return MDCC::COND_LE;
  case ISD::SETGE:
  case ISD::SETOGE: return MDCC::COND_GE;
  }
}
static MDCC :: CondCodes DAGFloatCCToMDCC ( ISD :: CondCode CC ) { switch ( CC ) { default : llvm_unreachable ( " " ) ; case ISD :: SETEQ : case ISD :: SETOEQ : return MDCC :: COND_EQ ; case ISD :: SETNE : case ISD :: SETUNE : return MDCC :: COND_NE ; case ISD :: SETLT : case ISD :: SETOLT : return MDCC :: COND_LS ; case ISD :: SETGT : case ISD :: SETOGT : return MDCC :: COND_GR ; case ISD :: SETLE : case ISD :: SETOLE : return MDCC :: COND_LE ; case ISD :: SETGE : case ISD :: SETOGE : return MDCC :: COND_GE ; } }
FPCondCCodeToFCC - Convert a DAG floatingp oint condition code to a Mandarin CC condition.
FPCondCCodeToFCC - Convert a DAG floatingp oint condition code to a Mandarin CC condition .