Lines Matching refs:CmpInst

233   FCmp32Libcalls.resize(CmpInst::LAST_FCMP_PREDICATE + 1);  in setFCmpLibcallsAEABI()
234 FCmp32Libcalls[CmpInst::FCMP_OEQ] = { in setFCmpLibcallsAEABI()
235 {RTLIB::OEQ_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
236 FCmp32Libcalls[CmpInst::FCMP_OGE] = { in setFCmpLibcallsAEABI()
237 {RTLIB::OGE_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
238 FCmp32Libcalls[CmpInst::FCMP_OGT] = { in setFCmpLibcallsAEABI()
239 {RTLIB::OGT_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
240 FCmp32Libcalls[CmpInst::FCMP_OLE] = { in setFCmpLibcallsAEABI()
241 {RTLIB::OLE_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
242 FCmp32Libcalls[CmpInst::FCMP_OLT] = { in setFCmpLibcallsAEABI()
243 {RTLIB::OLT_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
244 FCmp32Libcalls[CmpInst::FCMP_ORD] = {{RTLIB::UO_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
245 FCmp32Libcalls[CmpInst::FCMP_UGE] = {{RTLIB::OLT_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
246 FCmp32Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
247 FCmp32Libcalls[CmpInst::FCMP_ULE] = {{RTLIB::OGT_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
248 FCmp32Libcalls[CmpInst::FCMP_ULT] = {{RTLIB::OGE_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
249 FCmp32Libcalls[CmpInst::FCMP_UNE] = {{RTLIB::UNE_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
250 FCmp32Libcalls[CmpInst::FCMP_UNO] = { in setFCmpLibcallsAEABI()
251 {RTLIB::UO_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
252 FCmp32Libcalls[CmpInst::FCMP_ONE] = { in setFCmpLibcallsAEABI()
253 {RTLIB::OGT_F32, CmpInst::BAD_ICMP_PREDICATE}, in setFCmpLibcallsAEABI()
254 {RTLIB::OLT_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
255 FCmp32Libcalls[CmpInst::FCMP_UEQ] = { in setFCmpLibcallsAEABI()
256 {RTLIB::OEQ_F32, CmpInst::BAD_ICMP_PREDICATE}, in setFCmpLibcallsAEABI()
257 {RTLIB::UO_F32, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
259 FCmp64Libcalls.resize(CmpInst::LAST_FCMP_PREDICATE + 1); in setFCmpLibcallsAEABI()
260 FCmp64Libcalls[CmpInst::FCMP_OEQ] = { in setFCmpLibcallsAEABI()
261 {RTLIB::OEQ_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
262 FCmp64Libcalls[CmpInst::FCMP_OGE] = { in setFCmpLibcallsAEABI()
263 {RTLIB::OGE_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
264 FCmp64Libcalls[CmpInst::FCMP_OGT] = { in setFCmpLibcallsAEABI()
265 {RTLIB::OGT_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
266 FCmp64Libcalls[CmpInst::FCMP_OLE] = { in setFCmpLibcallsAEABI()
267 {RTLIB::OLE_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
268 FCmp64Libcalls[CmpInst::FCMP_OLT] = { in setFCmpLibcallsAEABI()
269 {RTLIB::OLT_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
270 FCmp64Libcalls[CmpInst::FCMP_ORD] = {{RTLIB::UO_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
271 FCmp64Libcalls[CmpInst::FCMP_UGE] = {{RTLIB::OLT_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
272 FCmp64Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
273 FCmp64Libcalls[CmpInst::FCMP_ULE] = {{RTLIB::OGT_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
274 FCmp64Libcalls[CmpInst::FCMP_ULT] = {{RTLIB::OGE_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
275 FCmp64Libcalls[CmpInst::FCMP_UNE] = {{RTLIB::UNE_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsAEABI()
276 FCmp64Libcalls[CmpInst::FCMP_UNO] = { in setFCmpLibcallsAEABI()
277 {RTLIB::UO_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
278 FCmp64Libcalls[CmpInst::FCMP_ONE] = { in setFCmpLibcallsAEABI()
279 {RTLIB::OGT_F64, CmpInst::BAD_ICMP_PREDICATE}, in setFCmpLibcallsAEABI()
280 {RTLIB::OLT_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
281 FCmp64Libcalls[CmpInst::FCMP_UEQ] = { in setFCmpLibcallsAEABI()
282 {RTLIB::OEQ_F64, CmpInst::BAD_ICMP_PREDICATE}, in setFCmpLibcallsAEABI()
283 {RTLIB::UO_F64, CmpInst::BAD_ICMP_PREDICATE}}; in setFCmpLibcallsAEABI()
289 FCmp32Libcalls.resize(CmpInst::LAST_FCMP_PREDICATE + 1); in setFCmpLibcallsGNU()
290 FCmp32Libcalls[CmpInst::FCMP_OEQ] = {{RTLIB::OEQ_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsGNU()
291 FCmp32Libcalls[CmpInst::FCMP_OGE] = {{RTLIB::OGE_F32, CmpInst::ICMP_SGE}}; in setFCmpLibcallsGNU()
292 FCmp32Libcalls[CmpInst::FCMP_OGT] = {{RTLIB::OGT_F32, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
293 FCmp32Libcalls[CmpInst::FCMP_OLE] = {{RTLIB::OLE_F32, CmpInst::ICMP_SLE}}; in setFCmpLibcallsGNU()
294 FCmp32Libcalls[CmpInst::FCMP_OLT] = {{RTLIB::OLT_F32, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU()
295 FCmp32Libcalls[CmpInst::FCMP_ORD] = {{RTLIB::UO_F32, CmpInst::ICMP_EQ}}; in setFCmpLibcallsGNU()
296 FCmp32Libcalls[CmpInst::FCMP_UGE] = {{RTLIB::OLT_F32, CmpInst::ICMP_SGE}}; in setFCmpLibcallsGNU()
297 FCmp32Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F32, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
298 FCmp32Libcalls[CmpInst::FCMP_ULE] = {{RTLIB::OGT_F32, CmpInst::ICMP_SLE}}; in setFCmpLibcallsGNU()
299 FCmp32Libcalls[CmpInst::FCMP_ULT] = {{RTLIB::OGE_F32, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU()
300 FCmp32Libcalls[CmpInst::FCMP_UNE] = {{RTLIB::UNE_F32, CmpInst::ICMP_NE}}; in setFCmpLibcallsGNU()
301 FCmp32Libcalls[CmpInst::FCMP_UNO] = {{RTLIB::UO_F32, CmpInst::ICMP_NE}}; in setFCmpLibcallsGNU()
302 FCmp32Libcalls[CmpInst::FCMP_ONE] = {{RTLIB::OGT_F32, CmpInst::ICMP_SGT}, in setFCmpLibcallsGNU()
303 {RTLIB::OLT_F32, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU()
304 FCmp32Libcalls[CmpInst::FCMP_UEQ] = {{RTLIB::OEQ_F32, CmpInst::ICMP_EQ}, in setFCmpLibcallsGNU()
305 {RTLIB::UO_F32, CmpInst::ICMP_NE}}; in setFCmpLibcallsGNU()
307 FCmp64Libcalls.resize(CmpInst::LAST_FCMP_PREDICATE + 1); in setFCmpLibcallsGNU()
308 FCmp64Libcalls[CmpInst::FCMP_OEQ] = {{RTLIB::OEQ_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsGNU()
309 FCmp64Libcalls[CmpInst::FCMP_OGE] = {{RTLIB::OGE_F64, CmpInst::ICMP_SGE}}; in setFCmpLibcallsGNU()
310 FCmp64Libcalls[CmpInst::FCMP_OGT] = {{RTLIB::OGT_F64, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
311 FCmp64Libcalls[CmpInst::FCMP_OLE] = {{RTLIB::OLE_F64, CmpInst::ICMP_SLE}}; in setFCmpLibcallsGNU()
312 FCmp64Libcalls[CmpInst::FCMP_OLT] = {{RTLIB::OLT_F64, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU()
313 FCmp64Libcalls[CmpInst::FCMP_ORD] = {{RTLIB::UO_F64, CmpInst::ICMP_EQ}}; in setFCmpLibcallsGNU()
314 FCmp64Libcalls[CmpInst::FCMP_UGE] = {{RTLIB::OLT_F64, CmpInst::ICMP_SGE}}; in setFCmpLibcallsGNU()
315 FCmp64Libcalls[CmpInst::FCMP_UGT] = {{RTLIB::OLE_F64, CmpInst::ICMP_SGT}}; in setFCmpLibcallsGNU()
316 FCmp64Libcalls[CmpInst::FCMP_ULE] = {{RTLIB::OGT_F64, CmpInst::ICMP_SLE}}; in setFCmpLibcallsGNU()
317 FCmp64Libcalls[CmpInst::FCMP_ULT] = {{RTLIB::OGE_F64, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU()
318 FCmp64Libcalls[CmpInst::FCMP_UNE] = {{RTLIB::UNE_F64, CmpInst::ICMP_NE}}; in setFCmpLibcallsGNU()
319 FCmp64Libcalls[CmpInst::FCMP_UNO] = {{RTLIB::UO_F64, CmpInst::ICMP_NE}}; in setFCmpLibcallsGNU()
320 FCmp64Libcalls[CmpInst::FCMP_ONE] = {{RTLIB::OGT_F64, CmpInst::ICMP_SGT}, in setFCmpLibcallsGNU()
321 {RTLIB::OLT_F64, CmpInst::ICMP_SLT}}; in setFCmpLibcallsGNU()
322 FCmp64Libcalls[CmpInst::FCMP_UEQ] = {{RTLIB::OEQ_F64, CmpInst::ICMP_EQ}, in setFCmpLibcallsGNU()
323 {RTLIB::UO_F64, CmpInst::ICMP_NE}}; in setFCmpLibcallsGNU()
327 ARMLegalizerInfo::getFCmpLibcalls(CmpInst::Predicate Predicate, in getFCmpLibcalls()
329 assert(CmpInst::isFPPredicate(Predicate) && "Unsupported FCmp predicate"); in getFCmpLibcalls()
381 static_cast<CmpInst::Predicate>(MI.getOperand(1).getPredicate()); in legalizeCustom()
385 assert((Predicate == CmpInst::FCMP_TRUE || in legalizeCustom()
386 Predicate == CmpInst::FCMP_FALSE) && in legalizeCustom()
389 Predicate == CmpInst::FCMP_TRUE ? 1 : 0); in legalizeCustom()
418 CmpInst::Predicate ResultPred = Libcall.Predicate; in legalizeCustom()
419 if (ResultPred == CmpInst::BAD_ICMP_PREDICATE) { in legalizeCustom()
425 assert(CmpInst::isIntPredicate(ResultPred) && "Unsupported predicate"); in legalizeCustom()