Lines Matching refs:SourcePreds
77 TEST(OperationsTest, SourcePreds) { in TEST() argument
293 EXPECT_TRUE(GEPOp.SourcePreds[0].matches({}, UndefValue::get(Int8PtrTy))); in TEST()
294 EXPECT_TRUE(GEPOp.SourcePreds[1].matches({UndefValue::get(Int8PtrTy)}, in TEST()
323 ASSERT_FALSE(Descr.SourcePreds[0].matches({}, &*BB.begin())); in TEST()
326 ASSERT_TRUE(Descr.SourcePreds[0].matches({}, &*std::next(BB.begin()))); in TEST()
352 EXPECT_TRUE(EVOp.SourcePreds[0].matches({}, SVal)); in TEST()
353 EXPECT_FALSE(EVOp.SourcePreds[0].matches({}, OVal)); in TEST()
354 EXPECT_TRUE(EVOp.SourcePreds[0].matches({}, AVal)); in TEST()
355 EXPECT_FALSE(EVOp.SourcePreds[0].matches({}, VVal)); in TEST()
356 EXPECT_TRUE(IVOp.SourcePreds[0].matches({}, SVal)); in TEST()
357 EXPECT_FALSE(IVOp.SourcePreds[0].matches({}, OVal)); in TEST()
358 EXPECT_TRUE(IVOp.SourcePreds[0].matches({}, AVal)); in TEST()
359 EXPECT_FALSE(IVOp.SourcePreds[0].matches({}, VVal)); in TEST()
362 EXPECT_FALSE(EVOp.SourcePreds[0].matches({}, ZAVal)); in TEST()
363 EXPECT_FALSE(IVOp.SourcePreds[0].matches({}, ZAVal)); in TEST()
367 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 0))); in TEST()
369 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 1))); in TEST()
371 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 2))); in TEST()
373 EVOp.SourcePreds[1].matches({OVal}, ConstantInt::get(Int32Ty, 0))); in TEST()
375 EVOp.SourcePreds[1].matches({OVal}, ConstantInt::get(Int32Ty, 65536))); in TEST()
377 EVOp.SourcePreds[1].matches({AVal}, ConstantInt::get(Int32Ty, 0))); in TEST()
379 EVOp.SourcePreds[1].matches({AVal}, ConstantInt::get(Int32Ty, 3))); in TEST()
381 EVOp.SourcePreds[1].matches({AVal}, ConstantInt::get(Int32Ty, 4))); in TEST()
384 EVOp.SourcePreds[1].generate({SVal}, {}), in TEST()
389 EXPECT_TRUE(IVOp.SourcePreds[1].matches({SVal}, UndefValue::get(Int8PtrTy))); in TEST()
390 EXPECT_TRUE(IVOp.SourcePreds[1].matches({SVal}, UndefValue::get(Int32Ty))); in TEST()
391 EXPECT_FALSE(IVOp.SourcePreds[1].matches({SVal}, UndefValue::get(Int64Ty))); in TEST()
392 EXPECT_FALSE(IVOp.SourcePreds[2].matches({SVal, UndefValue::get(Int32Ty)}, in TEST()
394 EXPECT_TRUE(IVOp.SourcePreds[2].matches({SVal, UndefValue::get(Int32Ty)}, in TEST()
397 EXPECT_THAT(IVOp.SourcePreds[1].generate({SVal}, {}), in TEST()
400 IVOp.SourcePreds[2].generate({SVal, ConstantInt::get(Int32Ty, 0)}, {}), in TEST()