/arkcompiler/runtime_core/compiler/tests/ |
D | graph_cloner_test.cpp | 42 INST(44, Opcode::LoadAndInitClass).ref().Inputs().TypeId(68); in TEST_F() 43 INST(3, Opcode::NewArray).ref().Inputs(44, 2); in TEST_F() 44 INST(14, Opcode::Compare).CC(ConditionCode::CC_LT).b().Inputs(0, 13); // i < X in TEST_F() 45 INST(15, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(14); in TEST_F() 49 INST(4, Opcode::Phi).s32().Inputs(0, 10); in TEST_F() 50 INST(7, Opcode::SaveState).Inputs(0, 1, 2, 3).SrcVregs({0, 1, 2, 3}); in TEST_F() 51 INST(8, Opcode::BoundsCheck).s32().Inputs(2, 4, 7); in TEST_F() 52 INST(9, Opcode::StoreArray).s32().Inputs(3, 8, 0); // a[i] = 0 in TEST_F() 53 INST(10, Opcode::Add).s32().Inputs(4, 1); // i++ in TEST_F() 54 INST(5, Opcode::Compare).CC(ConditionCode::CC_LT).b().Inputs(10, 13); // i < X in TEST_F() [all …]
|
D | vn_test.cpp | 49 INST(6, Opcode::Add).u64().Inputs(0, 1); in TEST_F() 50 INST(7, Opcode::Sub).u32().Inputs(1, 0); in TEST_F() 51 INST(8, Opcode::Mul).f32().Inputs(4, 5); in TEST_F() 52 INST(9, Opcode::Div).f64().Inputs(3, 2); in TEST_F() 53 INST(10, Opcode::Sub).u32().Inputs(1, 0); in TEST_F() 54 INST(11, Opcode::Div).f64().Inputs(3, 2); in TEST_F() 55 INST(12, Opcode::Mul).f32().Inputs(4, 5); in TEST_F() 56 INST(13, Opcode::Add).u64().Inputs(0, 1); in TEST_F() 74 INST(6, Opcode::Add).u64().Inputs(0, 1); in TEST_F() 75 INST(7, Opcode::Sub).u32().Inputs(1, 0); in TEST_F() [all …]
|
D | move_constants_test.cpp | 33 INST(2, Opcode::IfImm).CC(CC_GE).Imm(5).Inputs(0); in TEST_F() 43 INST(4, Opcode::IfImm).CC(CC_LE).Imm(10).Inputs(0); in TEST_F() 48 INST(6, Opcode::Return).ref().Inputs(1); in TEST_F() 53 INST(8, Opcode::Return).ref().Inputs(1); in TEST_F() 63 INST(2, Opcode::IfImm).CC(CC_GE).Imm(5).Inputs(0); in TEST_F() 74 INST(4, Opcode::IfImm).CC(CC_LE).Imm(10).Inputs(0); in TEST_F() 79 INST(6, Opcode::Return).ref().Inputs(1); in TEST_F() 84 INST(8, Opcode::Return).ref().Inputs(1); in TEST_F() 104 INST(2, Opcode::IfImm).CC(CC_GE).Imm(5).Inputs(0); in TEST_F() 114 INST(4, Opcode::IfImm).CC(CC_LE).Imm(10).Inputs(0); in TEST_F() [all …]
|
D | cleanup_test.cpp | 56 INST(2, Opcode::If).SrcType(DataType::Type::INT64).CC(CC_LE).Inputs(0, 1); in TEST_F() 60 INST(3, Opcode::If).SrcType(DataType::Type::INT64).CC(CC_EQ).Inputs(0, 1); in TEST_F() 64 INST(4, Opcode::Add).s64().Inputs(0, 1); in TEST_F() 68 INST(5, Opcode::Phi).s64().Inputs({{3, 1}, {4, 4}}); in TEST_F() 72 INST(6, Opcode::Phi).s64().Inputs({{2, 0}, {5, 5}}); in TEST_F() 73 INST(7, Opcode::Return).s64().Inputs(6); in TEST_F() 86 INST(2, Opcode::If).SrcType(DataType::Type::INT64).CC(CC_LE).Inputs(0, 1); in TEST_F() 90 INST(3, Opcode::If).SrcType(DataType::Type::INT64).CC(CC_EQ).Inputs(0, 1); in TEST_F() 94 INST(4, Opcode::Add).s64().Inputs(0, 1); in TEST_F() 98 INST(5, Opcode::Phi).s64().Inputs({{2, 0}, {3, 1}, {4, 4}}); in TEST_F() [all …]
|
D | ir_builder_test.cpp | 75 INST(1, Opcode::Return).Inputs(0); in CheckSimple() 116 INST(1, Opcode::Return).Inputs(0); in CheckSimpleWithImm() 152 INST(2, Opcode::Cmp).s32().Inputs(0, 1); in CheckCmp() 153 INST(3, Opcode::Return).s32().Inputs(2); in CheckCmp() 184 INST(2, Opcode::Cmp).s32().SrcType(data_type).Fcmpg(fcmpg).Inputs(0, 1); in CheckFloatCmp() 185 INST(3, Opcode::Return).s32().Inputs(2); in CheckFloatCmp() 246 INST(2, Opcode::Compare).b().CC(CC).Inputs(0, 1); in CheckCondJump() 247 INST(3, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(2); in CheckCondJump() 312 INST(1, Opcode::Compare).b().CC(CC).Inputs(0, 2); in CheckCondJumpWithZero() 313 INST(3, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(1); in CheckCondJumpWithZero() [all …]
|
D | basicblock_test.cpp | 94 INST(18, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 95 INST(19, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(18); in TEST_F() 100 INST(22, Opcode::Mul).u64().Inputs(20, 20); in TEST_F() 101 INST(3, Opcode::Not).u64().Inputs(0); in TEST_F() 102 INST(17, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 103 INST(11, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(17); in TEST_F() 107 INST(4, Opcode::Add).u64().Inputs(0, 1); in TEST_F() 111 INST(5, Opcode::Sub).u64().Inputs(1, 0); in TEST_F() 115 INST(6, Opcode::Div).u64().Inputs(22, 21); in TEST_F() 119 INST(8, Opcode::Phi).u64().Inputs({{3, 4}, {6, 5}, {7, 6}}); in TEST_F() [all …]
|
D | branch_elimination_test.cpp | 103 INST(19, Opcode::Compare).b().CC(CC_EQ).Inputs(0, 1); in BuildTestGraph() 104 INST(4, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(19); in BuildTestGraph() 108 INST(5, Opcode::Add).u64().Inputs(0, 1); in BuildTestGraph() 109 INST(6, Opcode::Add).u64().Inputs(5, 2); in BuildTestGraph() 113 INST(9, Opcode::Compare).b().CC(CC_EQ).Inputs(0, 2); in BuildTestGraph() 114 INST(10, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(9); in BuildTestGraph() 118 INST(11, Opcode::Sub).u64().Inputs(0, 1); in BuildTestGraph() 119 INST(12, Opcode::Sub).u64().Inputs(11, 2); in BuildTestGraph() 123 INST(14, Opcode::Mul).u64().Inputs(0, 1); in BuildTestGraph() 124 INST(15, Opcode::Mul).u64().Inputs(14, 2); in BuildTestGraph() [all …]
|
D | graph_comparator_test.cpp | 33 INST(3, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(2); in CreateGraph() 37 INST(4, Opcode::Add).s32().Inputs(0, 1); in CreateGraph() 41 INST(5, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(2); in CreateGraph() 45 INST(6, Opcode::Sub).s32().Inputs(0, 1); in CreateGraph() 49 INST(7, Opcode::Mul).s32().Inputs(0, 1); in CreateGraph() 53 INST(8, Opcode::Phi).s32().Inputs(inputs); in CreateGraph() 54 INST(9, Opcode::Return).s32().Inputs(8); in CreateGraph() 71 INST(2, Opcode::Add).s32().Inputs(0, 1); in TEST_F() 75 INST(4, Opcode::Return).s32().Inputs(2); in TEST_F() 85 INST(6, Opcode::Add).s32().Inputs(23, 3); in TEST_F() [all …]
|
D | reg_alloc_common_test.cpp | 54 INST(30, Opcode::SaveState).Inputs(0).SrcVregs({0}); in TestParametersLocations() 55 INST(11, Opcode::NullCheck).ref().Inputs(0, 30); in TestParametersLocations() 56 INST(12, Opcode::StoreObject).u64().Inputs(11, 1); in TestParametersLocations() 57 INST(13, Opcode::StoreObject).u64().Inputs(11, 2); in TestParametersLocations() 58 INST(14, Opcode::StoreObject).u64().Inputs(11, 3); in TestParametersLocations() 59 INST(15, Opcode::StoreObject).u64().Inputs(11, 4); in TestParametersLocations() 60 INST(16, Opcode::StoreObject).u64().Inputs(11, 5); in TestParametersLocations() 61 INST(17, Opcode::StoreObject).u64().Inputs(11, 6); in TestParametersLocations() 62 INST(18, Opcode::StoreObject).u64().Inputs(11, 7); in TestParametersLocations() 63 INST(19, Opcode::StoreObject).u64().Inputs(11, 8); in TestParametersLocations() [all …]
|
D | split_resolver_test.cpp | 99 INST(1, Opcode::Add).u64().Inputs(0, 0); in TEST_F() 100 INST(2, Opcode::Return).u64().Inputs(1); in TEST_F() 121 INST(1, Opcode::Add).u64().Inputs(0, 0); in TEST_F() 123 INST(2, Opcode::Add).u64().Inputs(0, 1); in TEST_F() 124 INST(3, Opcode::Return).u64().Inputs(2); in TEST_F() 153 INST(1, Opcode::Compare).b().SrcType(DataType::Type::UINT64).Inputs(0, 0); in TEST_F() 154 INST(2, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(1); in TEST_F() 159 INST(3, Opcode::SaveState).Inputs(0, 1).SrcVregs({0, 1}); in TEST_F() 171 INST(5, Opcode::SaveState).Inputs(0, 1).SrcVregs({0, 1}); in TEST_F() 177 INST(7, Opcode::Return).u64().Inputs(0); in TEST_F() [all …]
|
D | liveness_analyzer_test.cpp | 77 INST(2, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 78 INST(3, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(2); in TEST_F() 83 INST(5, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 84 INST(6, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(5); in TEST_F() 91 INST(10, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 92 INST(11, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(10); in TEST_F() 98 INST(14, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 99 INST(15, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(14); in TEST_F() 125 INST(2, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 126 INST(3, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(2); in TEST_F() [all …]
|
D | loop_analyzer_test.cpp | 130 INST(5, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 131 INST(6, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(5); in TEST_F() 137 INST(9, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 138 INST(10, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(9); in TEST_F() 142 INST(11, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 143 INST(12, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(11); in TEST_F() 147 INST(13, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 148 INST(14, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(13); in TEST_F() 154 INST(17, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 155 INST(18, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(17); in TEST_F() [all …]
|
D | reg_alloc_graph_coloring_test.cpp | 54 INST(3, Opcode::Compare).b().CC(CC_LT).SrcType(DataType::Type::UINT64).Inputs(2, 0); in TEST_F() 55 INST(4, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(3); in TEST_F() 60 INST(5, Opcode::Add).u64().Inputs(0, 2); in TEST_F() 65 INST(6, Opcode::Phi).u64().Inputs(2, 5); in TEST_F() 66 INST(7, Opcode::Add).u64().Inputs(6, 1); in TEST_F() 67 INST(8, Opcode::Return).u64().Inputs(7); in TEST_F() 102 INST(3, Opcode::Compare).b().CC(CC_LT).SrcType(DataType::Type::UINT64).Inputs(2, 0); in TEST_F() 103 INST(4, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(3); in TEST_F() 108 INST(5, Opcode::Add).u64().Inputs(0, 2); in TEST_F() 113 INST(7, Opcode::Compare).b().CC(CC_LT).SrcType(DataType::Type::UINT64).Inputs(1, 0); in TEST_F() [all …]
|
D | inst_test.cpp | 56 INST(2, Opcode::Add).u64().Inputs(0, 1); in TEST_F() 57 INST(8, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 58 INST(9, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(8); in TEST_F() 62 INST(3, Opcode::Not).u64().Inputs(0); in TEST_F() 66 INST(4, Opcode::Not).u64().Inputs(1); in TEST_F() 67 INST(11, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 68 INST(12, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(11); in TEST_F() 72 INST(7, Opcode::Sub).u64().Inputs(3, 2); in TEST_F() 77 INST(5, Opcode::Not).u64().Inputs(4); in TEST_F() 81 INST(6, Opcode::Phi).u64().Inputs({{5, 3}, {4, 4}, {7, 5}}); in TEST_F() [all …]
|
D | dom_tree_test.cpp | 111 INST(2, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 112 INST(3, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(2); in TEST_F() 121 INST(6, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 122 INST(7, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(6); in TEST_F() 257 INST(2, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 258 INST(3, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(2); in TEST_F() 264 INST(6, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 265 INST(7, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(6); in TEST_F() 270 INST(9, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 271 INST(10, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(9); in TEST_F() [all …]
|
D | rpo_test.cpp | 87 INST(2, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 88 INST(3, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(2); in TEST_F() 92 INST(4, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 93 INST(5, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(2); in TEST_F() 206 INST(2, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 207 INST(3, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(2); in TEST_F() 212 INST(5, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 213 INST(6, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(5); in TEST_F() 219 INST(9, Opcode::Compare).b().SrcType(DataType::Type::INT64).Inputs(0, 1); in TEST_F() 220 INST(10, Opcode::IfImm).SrcType(DataType::BOOL).CC(CC_NE).Imm(0).Inputs(9); in TEST_F()
|
D | life_intervals_test.cpp | 175 INST(2, Opcode::Add).u64().Inputs(0, 1); in TEST_F() 176 INST(3, Opcode::Return).u64().Inputs(2); in TEST_F()
|
/arkcompiler/runtime_core/bytecode_optimizer/tests/ |
D | const_array_resolver_test.cpp | 32 INST(4, Opcode::LoadAndInitClass).ref().Inputs(20).TypeId(68); in TEST_F() 33 INST(3, Opcode::NewArray).ref().Inputs(4, 1, 20); in TEST_F() 34 INST(11, Opcode::StoreArray).u64().Inputs(3, 2, 2); in TEST_F() 35 INST(13, Opcode::StoreArray).u64().Inputs(3, 2, 2); in TEST_F() 36 INST(10, Opcode::Return).ref().Inputs(3); in TEST_F() 55 INST(4, Opcode::LoadAndInitClass).ref().Inputs(20).TypeId(68); in TEST_F() 57 INST(21, Opcode::LoadConstArray).ref().Inputs(22); in TEST_F() 58 INST(10, Opcode::Return).ref().Inputs(21); in TEST_F() 75 INST(4, Opcode::LoadAndInitClass).ref().Inputs(20).TypeId(68); in TEST_F() 76 INST(3, Opcode::NewArray).ref().Inputs(4, 1, 20); in TEST_F() [all …]
|
D | bitops_bitwise_and_test.cpp | 90 INST(4, Opcode::Phi).s64().Inputs(1, 10); in TEST_F() 91 INST(5, Opcode::Phi).s32().Inputs(2, 20); in TEST_F() 92 INST(19, Opcode::If).CC(compiler::CC_GE).SrcType(INT32).Inputs(5, 23); in TEST_F() 96 INST(9, Opcode::Cast).s64().SrcType(INT32).Inputs(5); in TEST_F() 97 INST(10, Opcode::And).s64().Inputs(9, 4); in TEST_F() 98 INST(20, Opcode::AddI).s32().Inputs(5).Imm(1); in TEST_F() 103 INST(13, Opcode::Cmp).s32().Inputs(4, 22); in TEST_F() 104 INST(15, Opcode::IfImm).SrcType(INT32).CC(compiler::CC_EQ).Imm(0).Inputs(13); in TEST_F() 108 INST(16, Opcode::Return).b().Inputs(2); in TEST_F() 113 INST(18, Opcode::Return).b().Inputs(21); in TEST_F()
|
D | canonicalization_test.cpp | 31 INST(2, Opcode::Add).s32().Inputs(0, 1); in TEST_F() 32 INST(3, Opcode::Compare).b().Inputs(0, 2); in TEST_F() 33 INST(4, Opcode::Return).b().Inputs(3); in TEST_F() 47 INST(2, Opcode::Add).s32().Inputs(0, 1); in TEST_F() 48 INST(3, Opcode::Compare).b().Inputs(2, 0); in TEST_F() 49 INST(4, Opcode::Return).b().Inputs(3); in TEST_F()
|
D | common.h | 461 INST(1, Opcode::Return).Inputs(0); in CheckSimple() 501 INST(1, Opcode::Return).Inputs(0); in CheckSimpleWithImm() 537 INST(2, Opcode::Cmp).s32().Inputs(0, 1); in CheckCmp() 538 INST(3, Opcode::Return).s32().Inputs(2); in CheckCmp() 569 INST(2, Opcode::Cmp).s32().SrcType(data_type).Fcmpg(fcmpg).Inputs(0, 1); in CheckFloatCmp() 570 INST(3, Opcode::Return).s32().Inputs(2); in CheckFloatCmp() 630 INST(1, Opcode::Compare).b().CC(CC).Inputs(0, 2); in CheckCondJumpWithZero() 634 .Inputs(1) in CheckCondJumpWithZero() 700 INST(2, Opcode::Compare).b().CC(CC).Inputs(0, 1); in CheckCondJump() 705 .Inputs(2); in CheckCondJump()
|
/arkcompiler/runtime_core/compiler/optimizer/templates/ |
D | IR-instructions.md.erb | 16 % columns = %w(Instruction Destination Inputs Properties Verification Description)
|
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
D | inst.cpp | 76 Input *old_inputs = Inputs(); in Reallocate()
|
D | inst.h | 584 Input *Inputs() in Inputs() function 615 return &Inputs()[index]; in GetInput() 621 Inputs()[index] = input; in SetInput() 1169 return Span<Input>(operands->Inputs(), operands->Size()); in GetInputs()
|
D | ir_constructor.h | 188 IrConstructor &Inputs(Args... inputs) in Inputs() function 202 IrConstructor &Inputs(std::initializer_list<std::pair<int, int>> inputs) in Inputs() function
|