Lines Matching refs:v2

44   void ExpectEqual(Value v1, Value v2) {  in ExpectEqual()  argument
45 EXPECT_EQ(v1.instruction, v2.instruction); in ExpectEqual()
46 EXPECT_EQ(v1.a_constant, v2.a_constant); in ExpectEqual()
47 EXPECT_EQ(v1.b_constant, v2.b_constant); in ExpectEqual()
48 EXPECT_EQ(v1.is_known, v2.is_known); in ExpectEqual()
233 Value AddValue(Value v1, Value v2) { return range_.AddValue(v1, v2); } in AddValue() argument
234 Value SubValue(Value v1, Value v2) { return range_.SubValue(v1, v2); } in SubValue() argument
235 Value MulValue(Value v1, Value v2) { return range_.MulValue(v1, v2); } in MulValue() argument
236 Value DivValue(Value v1, Value v2) { return range_.DivValue(v1, v2); } in DivValue() argument
237 Value MinValue(Value v1, Value v2) { return range_.MergeVal(v1, v2, true); } in MinValue() argument
238 Value MaxValue(Value v1, Value v2) { return range_.MergeVal(v1, v2, false); } in MaxValue() argument
569 Value v1, v2; in TEST_F() local
573 range_.GetInductionRange(condition_, condition_->InputAt(0), &v1, &v2, &needs_finite_test); in TEST_F()
576 ExpectEqual(Value(1000), v2); in TEST_F()
577 EXPECT_FALSE(range_.RefineOuter(&v1, &v2)); in TEST_F()
580 range_.GetInductionRange(increment_, condition_->InputAt(0), &v1, &v2, &needs_finite_test); in TEST_F()
583 ExpectEqual(Value(999), v2); in TEST_F()
584 EXPECT_FALSE(range_.RefineOuter(&v1, &v2)); in TEST_F()
585 range_.GetInductionRange(increment_, increment_, &v1, &v2, &needs_finite_test); in TEST_F()
588 ExpectEqual(Value(1000), v2); in TEST_F()
589 EXPECT_FALSE(range_.RefineOuter(&v1, &v2)); in TEST_F()
596 Value v1, v2; in TEST_F() local
600 range_.GetInductionRange(condition_, condition_->InputAt(0), &v1, &v2, &needs_finite_test); in TEST_F()
603 ExpectEqual(Value(1000), v2); in TEST_F()
604 EXPECT_FALSE(range_.RefineOuter(&v1, &v2)); in TEST_F()
607 range_.GetInductionRange(increment_, condition_->InputAt(0), &v1, &v2, &needs_finite_test); in TEST_F()
610 ExpectEqual(Value(1000), v2); in TEST_F()
611 EXPECT_FALSE(range_.RefineOuter(&v1, &v2)); in TEST_F()
612 range_.GetInductionRange(increment_, increment_, &v1, &v2, &needs_finite_test); in TEST_F()
615 ExpectEqual(Value(999), v2); in TEST_F()
616 EXPECT_FALSE(range_.RefineOuter(&v1, &v2)); in TEST_F()
623 Value v1, v2; in TEST_F() local
628 range_.GetInductionRange(condition_, condition_->InputAt(0), &v1, &v2, &needs_finite_test); in TEST_F()
631 ExpectEqual(Value(), v2); in TEST_F()
632 EXPECT_FALSE(range_.RefineOuter(&v1, &v2)); in TEST_F()
635 range_.GetInductionRange(increment_, condition_->InputAt(0), &v1, &v2, &needs_finite_test); in TEST_F()
638 ExpectEqual(Value(x_, 1, -1), v2); in TEST_F()
639 EXPECT_FALSE(range_.RefineOuter(&v1, &v2)); in TEST_F()
640 range_.GetInductionRange(increment_, increment_, &v1, &v2, &needs_finite_test); in TEST_F()
643 ExpectEqual(Value(x_, 1, 0), v2); in TEST_F()
644 EXPECT_FALSE(range_.RefineOuter(&v1, &v2)); in TEST_F()
693 Value v1, v2; in TEST_F() local
698 range_.GetInductionRange(condition_, condition_->InputAt(0), &v1, &v2, &needs_finite_test); in TEST_F()
701 ExpectEqual(Value(1000), v2); in TEST_F()
702 EXPECT_FALSE(range_.RefineOuter(&v1, &v2)); in TEST_F()
705 range_.GetInductionRange(increment_, condition_->InputAt(0), &v1, &v2, &needs_finite_test); in TEST_F()
708 ExpectEqual(Value(1000), v2); in TEST_F()
709 EXPECT_FALSE(range_.RefineOuter(&v1, &v2)); in TEST_F()
710 range_.GetInductionRange(increment_, increment_, &v1, &v2, &needs_finite_test); in TEST_F()
713 ExpectEqual(Value(999), v2); in TEST_F()
714 EXPECT_FALSE(range_.RefineOuter(&v1, &v2)); in TEST_F()