Lines Matching refs:CmpInst

173 getX86ConditionCode(CmpInst::Predicate Predicate) {  in getX86ConditionCode()
179 case CmpInst::FCMP_UEQ: CC = X86::COND_E; break; in getX86ConditionCode()
180 case CmpInst::FCMP_OLT: NeedSwap = true; // fall-through in getX86ConditionCode()
181 case CmpInst::FCMP_OGT: CC = X86::COND_A; break; in getX86ConditionCode()
182 case CmpInst::FCMP_OLE: NeedSwap = true; // fall-through in getX86ConditionCode()
183 case CmpInst::FCMP_OGE: CC = X86::COND_AE; break; in getX86ConditionCode()
184 case CmpInst::FCMP_UGT: NeedSwap = true; // fall-through in getX86ConditionCode()
185 case CmpInst::FCMP_ULT: CC = X86::COND_B; break; in getX86ConditionCode()
186 case CmpInst::FCMP_UGE: NeedSwap = true; // fall-through in getX86ConditionCode()
187 case CmpInst::FCMP_ULE: CC = X86::COND_BE; break; in getX86ConditionCode()
188 case CmpInst::FCMP_ONE: CC = X86::COND_NE; break; in getX86ConditionCode()
189 case CmpInst::FCMP_UNO: CC = X86::COND_P; break; in getX86ConditionCode()
190 case CmpInst::FCMP_ORD: CC = X86::COND_NP; break; in getX86ConditionCode()
191 case CmpInst::FCMP_OEQ: // fall-through in getX86ConditionCode()
192 case CmpInst::FCMP_UNE: CC = X86::COND_INVALID; break; in getX86ConditionCode()
195 case CmpInst::ICMP_EQ: CC = X86::COND_E; break; in getX86ConditionCode()
196 case CmpInst::ICMP_NE: CC = X86::COND_NE; break; in getX86ConditionCode()
197 case CmpInst::ICMP_UGT: CC = X86::COND_A; break; in getX86ConditionCode()
198 case CmpInst::ICMP_UGE: CC = X86::COND_AE; break; in getX86ConditionCode()
199 case CmpInst::ICMP_ULT: CC = X86::COND_B; break; in getX86ConditionCode()
200 case CmpInst::ICMP_ULE: CC = X86::COND_BE; break; in getX86ConditionCode()
201 case CmpInst::ICMP_SGT: CC = X86::COND_G; break; in getX86ConditionCode()
202 case CmpInst::ICMP_SGE: CC = X86::COND_GE; break; in getX86ConditionCode()
203 case CmpInst::ICMP_SLT: CC = X86::COND_L; break; in getX86ConditionCode()
204 case CmpInst::ICMP_SLE: CC = X86::COND_LE; break; in getX86ConditionCode()
211 getX86SSEConditionCode(CmpInst::Predicate Predicate) { in getX86SSEConditionCode()
226 case CmpInst::FCMP_OEQ: CC = 0; break; in getX86SSEConditionCode()
227 case CmpInst::FCMP_OGT: NeedSwap = true; // fall-through in getX86SSEConditionCode()
228 case CmpInst::FCMP_OLT: CC = 1; break; in getX86SSEConditionCode()
229 case CmpInst::FCMP_OGE: NeedSwap = true; // fall-through in getX86SSEConditionCode()
230 case CmpInst::FCMP_OLE: CC = 2; break; in getX86SSEConditionCode()
231 case CmpInst::FCMP_UNO: CC = 3; break; in getX86SSEConditionCode()
232 case CmpInst::FCMP_UNE: CC = 4; break; in getX86SSEConditionCode()
233 case CmpInst::FCMP_ULE: NeedSwap = true; // fall-through in getX86SSEConditionCode()
234 case CmpInst::FCMP_UGE: CC = 5; break; in getX86SSEConditionCode()
235 case CmpInst::FCMP_ULT: NeedSwap = true; // fall-through in getX86SSEConditionCode()
236 case CmpInst::FCMP_UGT: CC = 6; break; in getX86SSEConditionCode()
237 case CmpInst::FCMP_ORD: CC = 7; break; in getX86SSEConditionCode()
238 case CmpInst::FCMP_UEQ: in getX86SSEConditionCode()
239 case CmpInst::FCMP_ONE: CC = 8; break; in getX86SSEConditionCode()
1191 const CmpInst *CI = cast<CmpInst>(I); in X86SelectCmp()
1198 CmpInst::Predicate Predicate = optimizeCmpPredicate(CI); in X86SelectCmp()
1202 case CmpInst::FCMP_FALSE: { in X86SelectCmp()
1212 case CmpInst::FCMP_TRUE: { in X86SelectCmp()
1231 if (Predicate == CmpInst::FCMP_ORD || Predicate == CmpInst::FCMP_UNO) { in X86SelectCmp()
1245 case CmpInst::FCMP_OEQ: SETFOpc = &SETFOpcTable[0][0]; break; in X86SelectCmp()
1246 case CmpInst::FCMP_UNE: SETFOpc = &SETFOpcTable[1][0]; break; in X86SelectCmp()
1345 if (const CmpInst *CI = dyn_cast<CmpInst>(BI->getCondition())) { in X86SelectBranch()
1350 CmpInst::Predicate Predicate = optimizeCmpPredicate(CI); in X86SelectBranch()
1353 case CmpInst::FCMP_FALSE: fastEmitBranch(FalseMBB, DbgLoc); return true; in X86SelectBranch()
1354 case CmpInst::FCMP_TRUE: fastEmitBranch(TrueMBB, DbgLoc); return true; in X86SelectBranch()
1364 if (Predicate == CmpInst::FCMP_ORD || Predicate == CmpInst::FCMP_UNO) { in X86SelectBranch()
1373 Predicate = CmpInst::getInversePredicate(Predicate); in X86SelectBranch()
1384 case CmpInst::FCMP_OEQ: in X86SelectBranch()
1386 case CmpInst::FCMP_UNE: in X86SelectBranch()
1388 Predicate = CmpInst::FCMP_ONE; in X86SelectBranch()
1756 const auto *CI = dyn_cast<CmpInst>(Cond); in X86FastEmitCMoveSelect()
1758 CmpInst::Predicate Predicate = optimizeCmpPredicate(CI); in X86FastEmitCMoveSelect()
1768 case CmpInst::FCMP_OEQ: in X86FastEmitCMoveSelect()
1770 Predicate = CmpInst::ICMP_NE; in X86FastEmitCMoveSelect()
1772 case CmpInst::FCMP_UNE: in X86FastEmitCMoveSelect()
1774 Predicate = CmpInst::ICMP_NE; in X86FastEmitCMoveSelect()
1874 CmpInst::Predicate Predicate = optimizeCmpPredicate(CI); in X86FastEmitSSESelect()
1879 if (Predicate == CmpInst::FCMP_ORD || Predicate == CmpInst::FCMP_UNO) { in X86FastEmitSSESelect()
1976 const auto *CI = dyn_cast<CmpInst>(Cond); in X86FastEmitPseudoSelect()
2027 if (const auto *CI = dyn_cast<CmpInst>(I->getOperand(0))) { in X86SelectSelect()
2028 CmpInst::Predicate Predicate = optimizeCmpPredicate(CI); in X86SelectSelect()
2032 case CmpInst::FCMP_FALSE: Opnd = I->getOperand(2); break; in X86SelectSelect()
2033 case CmpInst::FCMP_TRUE: Opnd = I->getOperand(1); break; in X86SelectSelect()