Lines Matching refs:CmpInst
261 FCmp32Libcalls.resize(CmpInst::LAST_FCMP_PREDICATE + 1); in setFCmpLibcallsAEABI()
262 FCmp32Libcalls[CmpInst::FCMP_OEQ] = { in setFCmpLibcallsAEABI()
263 {RTLIB::OEQ_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
264 FCmp32Libcalls[CmpInst::FCMP_OGE] = { in setFCmpLibcallsAEABI()
265 {RTLIB::OGE_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
266 FCmp32Libcalls[CmpInst::FCMP_OGT] = { in setFCmpLibcallsAEABI()
267 {RTLIB::OGT_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
268 FCmp32Libcalls[CmpInst::FCMP_OLE] = { in setFCmpLibcallsAEABI()
269 {RTLIB::OLE_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
270 FCmp32Libcalls[CmpInst::FCMP_OLT] = { in setFCmpLibcallsAEABI()
271 {RTLIB::OLT_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
272 FCmp32Libcalls[CmpInst::FCMP_ORD] = {{RTLIB::UO_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
273 FCmp32Libcalls[CmpInst::FCMP_UGE] = {{RTLIB::OLT_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
274 FCmp32Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
275 FCmp32Libcalls[CmpInst::FCMP_ULE] = {{RTLIB::OGT_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
276 FCmp32Libcalls[CmpInst::FCMP_ULT] = {{RTLIB::OGE_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
277 FCmp32Libcalls[CmpInst::FCMP_UNE] = {{RTLIB::UNE_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
278 FCmp32Libcalls[CmpInst::FCMP_UNO] = { in setFCmpLibcallsAEABI()
279 {RTLIB::UO_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
280 FCmp32Libcalls[CmpInst::FCMP_ONE] = { in setFCmpLibcallsAEABI()
281 {RTLIB::OGT_F32, CmpInst::BAD_ICMP_PREDICATE}, in setFCmpLibcallsAEABI()
282 {RTLIB::OLT_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
283 FCmp32Libcalls[CmpInst::FCMP_UEQ] = { in setFCmpLibcallsAEABI()
284 {RTLIB::OEQ_F32, CmpInst::BAD_ICMP_PREDICATE}, in setFCmpLibcallsAEABI()
285 {RTLIB::UO_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
287 FCmp64Libcalls.resize(CmpInst::LAST_FCMP_PREDICATE + 1); in setFCmpLibcallsAEABI()
288 FCmp64Libcalls[CmpInst::FCMP_OEQ] = { in setFCmpLibcallsAEABI()
289 {RTLIB::OEQ_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
290 FCmp64Libcalls[CmpInst::FCMP_OGE] = { in setFCmpLibcallsAEABI()
291 {RTLIB::OGE_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
292 FCmp64Libcalls[CmpInst::FCMP_OGT] = { in setFCmpLibcallsAEABI()
293 {RTLIB::OGT_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
294 FCmp64Libcalls[CmpInst::FCMP_OLE] = { in setFCmpLibcallsAEABI()
295 {RTLIB::OLE_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
296 FCmp64Libcalls[CmpInst::FCMP_OLT] = { in setFCmpLibcallsAEABI()
297 {RTLIB::OLT_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
298 FCmp64Libcalls[CmpInst::FCMP_ORD] = {{RTLIB::UO_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
299 FCmp64Libcalls[CmpInst::FCMP_UGE] = {{RTLIB::OLT_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
300 FCmp64Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
301 FCmp64Libcalls[CmpInst::FCMP_ULE] = {{RTLIB::OGT_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
302 FCmp64Libcalls[CmpInst::FCMP_ULT] = {{RTLIB::OGE_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
303 FCmp64Libcalls[CmpInst::FCMP_UNE] = {{RTLIB::UNE_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
304 FCmp64Libcalls[CmpInst::FCMP_UNO] = { in setFCmpLibcallsAEABI()
305 {RTLIB::UO_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
306 FCmp64Libcalls[CmpInst::FCMP_ONE] = { in setFCmpLibcallsAEABI()
307 {RTLIB::OGT_F64, CmpInst::BAD_ICMP_PREDICATE}, in setFCmpLibcallsAEABI()
308 {RTLIB::OLT_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
309 FCmp64Libcalls[CmpInst::FCMP_UEQ] = { in setFCmpLibcallsAEABI()
310 {RTLIB::OEQ_F64, CmpInst::BAD_ICMP_PREDICATE}, in setFCmpLibcallsAEABI()
311 {RTLIB::UO_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
317 FCmp32Libcalls.resize(CmpInst::LAST_FCMP_PREDICATE + 1); in setFCmpLibcallsGNU()
318 FCmp32Libcalls[CmpInst::FCMP_OEQ] = {{RTLIB::OEQ_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsGNU()
319 FCmp32Libcalls[CmpInst::FCMP_OGE] = {{RTLIB::OGE_F32, CmpInst::ICMP_SGE}}; in setFCmpLibcallsGNU()
320 FCmp32Libcalls[CmpInst::FCMP_OGT] = {{RTLIB::OGT_F32, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
321 FCmp32Libcalls[CmpInst::FCMP_OLE] = {{RTLIB::OLE_F32, CmpInst::ICMP_SLE}}; in setFCmpLibcallsGNU()
322 FCmp32Libcalls[CmpInst::FCMP_OLT] = {{RTLIB::OLT_F32, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU()
323 FCmp32Libcalls[CmpInst::FCMP_ORD] = {{RTLIB::UO_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsGNU()
324 FCmp32Libcalls[CmpInst::FCMP_UGE] = {{RTLIB::OLT_F32, CmpInst::ICMP_SGE}}; in setFCmpLibcallsGNU()
325 FCmp32Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F32, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
326 FCmp32Libcalls[CmpInst::FCMP_ULE] = {{RTLIB::OGT_F32, CmpInst::ICMP_SLE}}; in setFCmpLibcallsGNU()
327 FCmp32Libcalls[CmpInst::FCMP_ULT] = {{RTLIB::OGE_F32, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU()
328 FCmp32Libcalls[CmpInst::FCMP_UNE] = {{RTLIB::UNE_F32, CmpInst::ICMP_NE}}; in setFCmpLibcallsGNU()
329 FCmp32Libcalls[CmpInst::FCMP_UNO] = {{RTLIB::UO_F32, CmpInst::ICMP_NE}}; in setFCmpLibcallsGNU()
330 FCmp32Libcalls[CmpInst::FCMP_ONE] = {{RTLIB::OGT_F32, CmpInst::ICMP_SGT}, in setFCmpLibcallsGNU()
331 {RTLIB::OLT_F32, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU()
332 FCmp32Libcalls[CmpInst::FCMP_UEQ] = {{RTLIB::OEQ_F32, CmpInst::ICMP_EQ}, in setFCmpLibcallsGNU()
333 {RTLIB::UO_F32, CmpInst::ICMP_NE}}; in setFCmpLibcallsGNU()
335 FCmp64Libcalls.resize(CmpInst::LAST_FCMP_PREDICATE + 1); in setFCmpLibcallsGNU()
336 FCmp64Libcalls[CmpInst::FCMP_OEQ] = {{RTLIB::OEQ_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsGNU()
337 FCmp64Libcalls[CmpInst::FCMP_OGE] = {{RTLIB::OGE_F64, CmpInst::ICMP_SGE}}; in setFCmpLibcallsGNU()
338 FCmp64Libcalls[CmpInst::FCMP_OGT] = {{RTLIB::OGT_F64, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
339 FCmp64Libcalls[CmpInst::FCMP_OLE] = {{RTLIB::OLE_F64, CmpInst::ICMP_SLE}}; in setFCmpLibcallsGNU()
340 FCmp64Libcalls[CmpInst::FCMP_OLT] = {{RTLIB::OLT_F64, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU()
341 FCmp64Libcalls[CmpInst::FCMP_ORD] = {{RTLIB::UO_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsGNU()
342 FCmp64Libcalls[CmpInst::FCMP_UGE] = {{RTLIB::OLT_F64, CmpInst::ICMP_SGE}}; in setFCmpLibcallsGNU()
343 FCmp64Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F64, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
344 FCmp64Libcalls[CmpInst::FCMP_ULE] = {{RTLIB::OGT_F64, CmpInst::ICMP_SLE}}; in setFCmpLibcallsGNU()
345 FCmp64Libcalls[CmpInst::FCMP_ULT] = {{RTLIB::OGE_F64, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU()
346 FCmp64Libcalls[CmpInst::FCMP_UNE] = {{RTLIB::UNE_F64, CmpInst::ICMP_NE}}; in setFCmpLibcallsGNU()
347 FCmp64Libcalls[CmpInst::FCMP_UNO] = {{RTLIB::UO_F64, CmpInst::ICMP_NE}}; in setFCmpLibcallsGNU()
348 FCmp64Libcalls[CmpInst::FCMP_ONE] = {{RTLIB::OGT_F64, CmpInst::ICMP_SGT}, in setFCmpLibcallsGNU()
349 {RTLIB::OLT_F64, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU()
350 FCmp64Libcalls[CmpInst::FCMP_UEQ] = {{RTLIB::OEQ_F64, CmpInst::ICMP_EQ}, in setFCmpLibcallsGNU()
351 {RTLIB::UO_F64, CmpInst::ICMP_NE}}; in setFCmpLibcallsGNU()
355 ARMLegalizerInfo::getFCmpLibcalls(CmpInst::Predicate Predicate, in getFCmpLibcalls()
357 assert(CmpInst::isFPPredicate(Predicate) && "Unsupported FCmp predicate"); in getFCmpLibcalls()
409 static_cast<CmpInst::Predicate>(MI.getOperand(1).getPredicate()); in legalizeCustom()
413 assert((Predicate == CmpInst::FCMP_TRUE || in legalizeCustom()
414 Predicate == CmpInst::FCMP_FALSE) && in legalizeCustom()
417 Predicate == CmpInst::FCMP_TRUE ? 1 : 0); in legalizeCustom()
446 CmpInst::Predicate ResultPred = Libcall.Predicate; in legalizeCustom()
447 if (ResultPred == CmpInst::BAD_ICMP_PREDICATE) { in legalizeCustom()
453 assert(CmpInst::isIntPredicate(ResultPred) && "Unsupported predicate"); in legalizeCustom()