Lines Matching defs:SourcePreds

76 TEST(OperationsTest, SourcePreds) {
370 EXPECT_TRUE(GEPOp.SourcePreds[0].matches({}, PoisonValue::get(Int8PtrTy)));
371 EXPECT_TRUE(GEPOp.SourcePreds[1].matches({PoisonValue::get(Int8PtrTy)},
398 ASSERT_FALSE(Descr.SourcePreds[0].matches({}, &*F.arg_begin()));
401 ASSERT_TRUE(Descr.SourcePreds[0].matches({}, &*BB.begin()));
427 EXPECT_TRUE(EVOp.SourcePreds[0].matches({}, SVal));
428 EXPECT_FALSE(EVOp.SourcePreds[0].matches({}, OVal));
429 EXPECT_TRUE(EVOp.SourcePreds[0].matches({}, AVal));
430 EXPECT_FALSE(EVOp.SourcePreds[0].matches({}, VVal));
431 EXPECT_TRUE(IVOp.SourcePreds[0].matches({}, SVal));
432 EXPECT_FALSE(IVOp.SourcePreds[0].matches({}, OVal));
433 EXPECT_TRUE(IVOp.SourcePreds[0].matches({}, AVal));
434 EXPECT_FALSE(IVOp.SourcePreds[0].matches({}, VVal));
437 EXPECT_FALSE(EVOp.SourcePreds[0].matches({}, ZAVal));
438 EXPECT_FALSE(IVOp.SourcePreds[0].matches({}, ZAVal));
442 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 0)));
444 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 1)));
446 EVOp.SourcePreds[1].matches({SVal}, ConstantInt::get(Int32Ty, 2)));
448 EVOp.SourcePreds[1].matches({OVal}, ConstantInt::get(Int32Ty, 0)));
450 EVOp.SourcePreds[1].matches({OVal}, ConstantInt::get(Int32Ty, 65536)));
452 EVOp.SourcePreds[1].matches({AVal}, ConstantInt::get(Int32Ty, 0)));
454 EVOp.SourcePreds[1].matches({AVal}, ConstantInt::get(Int32Ty, 3)));
456 EVOp.SourcePreds[1].matches({AVal}, ConstantInt::get(Int32Ty, 4)));
459 EVOp.SourcePreds[1].generate({SVal}, {}),
464 EXPECT_TRUE(IVOp.SourcePreds[1].matches({SVal}, PoisonValue::get(Int8PtrTy)));
465 EXPECT_TRUE(IVOp.SourcePreds[1].matches({SVal}, PoisonValue::get(Int32Ty)));
466 EXPECT_FALSE(IVOp.SourcePreds[1].matches({SVal}, PoisonValue::get(Int64Ty)));
467 EXPECT_FALSE(IVOp.SourcePreds[2].matches({SVal, PoisonValue::get(Int32Ty)},
469 EXPECT_TRUE(IVOp.SourcePreds[2].matches({SVal, PoisonValue::get(Int32Ty)},
472 EXPECT_THAT(IVOp.SourcePreds[1].generate({SVal}, {}),
475 IVOp.SourcePreds[2].generate({SVal, ConstantInt::get(Int32Ty, 0)}, {}),