Lines Matching refs:k_header

313   HPhi* k_header = InsertLoopPhi(0, 0);  in TEST_F()  local
314 k_header->AddInput(constant0_); in TEST_F()
317 new (GetAllocator()) HAdd(DataType::Type::kInt32, k_header, constant100_), 0); in TEST_F()
322 k_header->AddInput(sub); in TEST_F()
326 GetInductionInfo(k_header, 0).c_str()); in TEST_F()
342 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
343 k_header->AddInput(constant0_); in TEST_F()
350 HInstruction* inc1 = new (GetAllocator()) HAdd(DataType::Type::kInt32, k_header, constant1_); in TEST_F()
354 HInstruction* inc2 = new (GetAllocator()) HAdd(DataType::Type::kInt32, k_header, constant1_); in TEST_F()
359 k_header->AddInput(k_body); in TEST_F()
362 EXPECT_STREQ("((1) * i + (0)):Int32", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
433 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
434 k_header->AddInput(constant1_); in TEST_F()
441 new (GetAllocator()) HAdd(DataType::Type::kInt32, add, k_header), 0); in TEST_F()
442 k_header->AddInput(pol); in TEST_F()
447 GetInductionInfo(k_header, 0).c_str()); in TEST_F()
464 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
465 k_header->AddInput(constant1_); in TEST_F()
468 new (GetAllocator()) HAdd(DataType::Type::kInt32, k_header, constant100_), 0); in TEST_F()
470 new (GetAllocator()) HSub(DataType::Type::kInt32, k_header, constant1_), 0); in TEST_F()
474 new (GetAllocator()) HMul(DataType::Type::kInt32, k_header, constant2_), 0); in TEST_F()
476 new (GetAllocator()) HShl(DataType::Type::kInt32, k_header, constant2_), 0); in TEST_F()
478 new (GetAllocator()) HAdd(DataType::Type::kInt32, k_header, basic_[0]), 0); in TEST_F()
479 k_header->AddInput(pol); in TEST_F()
484 GetInductionInfo(k_header, 0).c_str()); in TEST_F()
507 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
508 k_header->AddInput(constant7_); in TEST_F()
511 new (GetAllocator()) HAdd(DataType::Type::kInt32, k_header, k_header), 0); in TEST_F()
513 new (GetAllocator()) HAdd(DataType::Type::kInt32, add1, k_header), 0); in TEST_F()
515 new (GetAllocator()) HAdd(DataType::Type::kInt32, k_header, basic_[0]), 0); in TEST_F()
516 k_header->AddInput(add3); in TEST_F()
521 GetInductionInfo(k_header, 0).c_str()); in TEST_F()
537 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
538 k_header->AddInput(constant1_); in TEST_F()
541 new (GetAllocator()) HMul(DataType::Type::kInt32, k_header, constant100_), 0); in TEST_F()
542 k_header->AddInput(mul); in TEST_F()
545 EXPECT_STREQ("geo((1) * 100 ^ i + (0)):Int32", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
562 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
563 k_header->AddInput(constant1_); in TEST_F()
566 new (GetAllocator()) HAdd(DataType::Type::kInt32, k_header, constant1_), 0); in TEST_F()
568 new (GetAllocator()) HShl(DataType::Type::kInt32, k_header, constant1_), 0); in TEST_F()
579 k_header->AddInput(shl1); in TEST_F()
582 EXPECT_STREQ("geo((1) * 2 ^ i + (0)):Int32", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
605 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
606 k_header->AddInput(constant1_); in TEST_F()
609 new (GetAllocator()) HAdd(DataType::Type::kInt32, k_header, constant100_), 0); in TEST_F()
611 new (GetAllocator()) HSub(DataType::Type::kInt32, k_header, constant1_), 0); in TEST_F()
615 new (GetAllocator()) HMul(DataType::Type::kInt32, k_header, constant2_), 0); in TEST_F()
617 new (GetAllocator()) HShl(DataType::Type::kInt32, k_header, constant2_), 0); in TEST_F()
619 new (GetAllocator()) HDiv(DataType::Type::kInt32, k_header, constant100_, kNoDexPc), 0); in TEST_F()
620 k_header->AddInput(div); in TEST_F()
624 EXPECT_STREQ("geo((1) * 100 ^ -i + (0)):Int32", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
640 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
641 k_header->AddInput(constant100_); in TEST_F()
644 new (GetAllocator()) HShr(DataType::Type::kInt32, k_header, constant1_), 0); in TEST_F()
645 k_header->AddInput(shr); in TEST_F()
649 EXPECT_STREQ("geo((100) * 2 ^ -i + (0)):Int32", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
660 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
661 k_header->AddInput(constantm1_); in TEST_F()
664 new (GetAllocator()) HShr(DataType::Type::kInt32, k_header, constant1_), 0); in TEST_F()
665 k_header->AddInput(shr); in TEST_F()
668 EXPECT_STREQ("", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
684 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
685 k_header->AddInput(constant100_); in TEST_F()
688 new (GetAllocator()) HAdd(DataType::Type::kInt32, k_header, constant100_), 0); in TEST_F()
690 new (GetAllocator()) HSub(DataType::Type::kInt32, k_header, constant1_), 0); in TEST_F()
694 new (GetAllocator()) HMul(DataType::Type::kInt32, k_header, constant2_), 0); in TEST_F()
696 new (GetAllocator()) HShl(DataType::Type::kInt32, k_header, constant2_), 0); in TEST_F()
698 new (GetAllocator()) HRem(DataType::Type::kInt32, k_header, constant7_, kNoDexPc), 0); in TEST_F()
699 k_header->AddInput(rem); in TEST_F()
703 EXPECT_STREQ("wrap((100), ((100) % (7))):Int32", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
725 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
726 k_header->AddInput(constant0_); in TEST_F()
728 HInstruction* store = InsertArrayStore(k_header, 0); in TEST_F()
731 k_header->AddInput(sub); in TEST_F()
735 GetInductionInfo(k_header, 0).c_str()); in TEST_F()
751 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
752 k_header->AddInput(constant0_); in TEST_F()
756 HInstruction* store = InsertArrayStore(k_header, 0); in TEST_F()
757 k_header->AddInput(t); in TEST_F()
780 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
781 k_header->AddInput(constant0_); in TEST_F()
784 new (GetAllocator()) HAdd(DataType::Type::kInt32, k_header, constant100_), 0); in TEST_F()
786 new (GetAllocator()) HSub(DataType::Type::kInt32, k_header, constant100_), 0); in TEST_F()
788 new (GetAllocator()) HMul(DataType::Type::kInt32, k_header, constant100_), 0); in TEST_F()
790 new (GetAllocator()) HShl(DataType::Type::kInt32, k_header, constant1_), 0); in TEST_F()
792 new (GetAllocator()) HNeg(DataType::Type::kInt32, k_header), 0); in TEST_F()
797 k_header->AddInput(shl2); in TEST_F()
827 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
828 k_header->AddInput(constant0_); in TEST_F()
832 HInstruction* store1 = InsertArrayStore(k_header, 0); in TEST_F()
834 k_header->AddInput(t); in TEST_F()
835 t->AddInput(k_header); in TEST_F()
850 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
851 k_header->AddInput(constant0_); in TEST_F()
853 HInstruction* store = InsertArrayStore(k_header, 0); in TEST_F()
855 new (GetAllocator()) HSub(DataType::Type::kInt32, constant1_, k_header), 0); in TEST_F()
856 k_header->AddInput(sub); in TEST_F()
871 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
872 k_header->AddInput(constant0_); in TEST_F()
874 HInstruction* store = InsertArrayStore(k_header, 0); in TEST_F()
876 new (GetAllocator()) HXor(DataType::Type::kInt32, k_header, constant1_), 0); in TEST_F()
877 k_header->AddInput(x); in TEST_F()
891 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
892 k_header->AddInput(constant1_); in TEST_F()
895 new (GetAllocator()) HXor(DataType::Type::kInt32, constant1_, k_header), 0); in TEST_F()
896 k_header->AddInput(x); in TEST_F()
899 EXPECT_STREQ("periodic((1), ((1) ^ (1))):Int32", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
910 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
911 k_header->AddInput(constant1_); in TEST_F()
914 new (GetAllocator()) HXor(DataType::Type::kInt32, k_header, constant100_), 0); in TEST_F()
915 k_header->AddInput(x); in TEST_F()
918 EXPECT_STREQ("periodic((1), ((1) ^ (100))):Int32", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
929 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
930 k_header->AddInput(constant0_); in TEST_F()
932 HInstruction* x = InsertInstruction(new (GetAllocator()) HEqual(k_header, constant0_), 0); in TEST_F()
933 k_header->AddInput(x); in TEST_F()
936 EXPECT_STREQ("periodic((0), (1)):Bool", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
947 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
948 k_header->AddInput(constant0_); in TEST_F()
950 HInstruction* x = InsertInstruction(new (GetAllocator()) HEqual(constant0_, k_header), 0); in TEST_F()
951 k_header->AddInput(x); in TEST_F()
954 EXPECT_STREQ("periodic((0), (1)):Bool", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
965 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
966 k_header->AddInput(constant0_); in TEST_F()
968 HInstruction* x = InsertInstruction(new (GetAllocator()) HNotEqual(k_header, constant1_), 0); in TEST_F()
969 k_header->AddInput(x); in TEST_F()
972 EXPECT_STREQ("periodic((0), (1)):Bool", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
983 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
984 k_header->AddInput(constant0_); in TEST_F()
986 HInstruction* x = InsertInstruction(new (GetAllocator()) HNotEqual(constant1_, k_header), 0); in TEST_F()
987 k_header->AddInput(x); in TEST_F()
990 EXPECT_STREQ("periodic((0), (1)):Bool", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
1007 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
1008 k_header->AddInput(constant0_); in TEST_F()
1011 new (GetAllocator()) HNeg(DataType::Type::kInt32, k_header), 0); in TEST_F()
1013 new (GetAllocator()) HSub(DataType::Type::kInt32, constant1_, k_header), 0); in TEST_F()
1024 k_header->AddInput(idiom); in TEST_F()
1027 EXPECT_STREQ("periodic((0), (1)):Int32", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
1050 HPhi* k_header[10]; in TEST_F() local
1052 k_header[d] = InsertLoopPhi(0, d); in TEST_F()
1056 new (GetAllocator()) HAdd(DataType::Type::kInt32, constant1_, k_header[9]), 9); in TEST_F()
1060 k_header[d]->AddInput((d != 0) ? k_header[d - 1] : constant0_); in TEST_F()
1061 k_header[d]->AddInput((d != 9) ? k_header[d + 1] : inc); in TEST_F()
1147 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
1148 k_header->AddInput(graph_->GetIntConstant(-128)); in TEST_F()
1151 new (GetAllocator()) HAdd(DataType::Type::kInt32, k_header, constant1_), 0); in TEST_F()
1154 k_header->AddInput(conv); in TEST_F()
1159 EXPECT_STREQ("((1) * i + (-128)):Int8", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
1163 EXPECT_TRUE(IsNarrowingLinear(k_header)); in TEST_F()
1175 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
1176 k_header->AddInput(graph_->GetIntConstant(-129)); in TEST_F()
1179 new (GetAllocator()) HAdd(DataType::Type::kInt32, k_header, constant1_), 0); in TEST_F()
1182 k_header->AddInput(conv); in TEST_F()
1185 EXPECT_STREQ("", GetInductionInfo(k_header, 0).c_str()); in TEST_F()
1197 HPhi* k_header = InsertLoopPhi(0, 0); in TEST_F() local
1198 k_header->AddInput(constant0_); in TEST_F()
1201 new (GetAllocator()) HTypeConversion(DataType::Type::kInt8, k_header, kNoDexPc), 0); in TEST_F()
1204 k_header->AddInput(add); in TEST_F()
1207 EXPECT_STREQ("", GetInductionInfo(k_header, 0).c_str()); in TEST_F()