| /arkcompiler/runtime_core/libpandafile/tests/ |
| D | bytecode_imm_fetch_tests.cpp | 33 …EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8_V8_V8_V8, 0>()), static_cast<int8_t>(0x17… in TEST() 34 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8_V8_V8_V8, 0, true>()), in TEST() 45 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), static_cast<int8_t>(-22)); in TEST() 46 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0, true>()), static_cast<int8_t>(-22)); in TEST() 57 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM32, 0>()), static_cast<int32_t>(0x1e)); in TEST() 58 …EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM32, 0, true>()), static_cast<int32_t>(0x1e)… in TEST() 68 … EXPECT_EQ((bit_cast<double>(inst.GetImm<BytecodeInstruction::Format::IMM64, 0, true>())), 3.14); in TEST() 81 …EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8_V8_V8_V8, 0>()), static_cast<int8_t>(0x8e… in TEST() 82 …EXPECT_NE((inst.GetImm<BytecodeInstruction::Format::IMM8_V8_V8_V8, 0>()), static_cast<uint8_t>(0x8… in TEST() 83 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8_V8_V8_V8, 0, false>()), in TEST() [all …]
|
| D | bytecode_instruction_tests.cpp | 35 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V4_IMM4, 0>()), -6); in TEST() 43 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V4_IMM4, 0>()), 0x2); in TEST() 54 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST() 61 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), 0x21); in TEST() 70 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST() 78 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST() 89 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM16, 0>()), 0x12f2); in TEST() 96 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM16, 0>()), static_cast<int16_t>(0xf212)); in TEST() 105 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM16, 0>()), 0x12f2); in TEST() 113 …EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM16, 0>()), static_cast<int16_t>(0xf212)); in TEST() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/tests/ |
| D | graph_comparator.h | 137 CHECK_OR_RETURN(IfImm, GetImm) in InstPropertiesCompare() 144 CHECK_OR_RETURN(SelectImm, GetImm) in InstPropertiesCompare() 147 CHECK_OR_RETURN(LoadArrayI, GetImm) in InstPropertiesCompare() 148 CHECK_OR_RETURN(LoadArrayPairI, GetImm) in InstPropertiesCompare() 149 CHECK_OR_RETURN(LoadPairPart, GetImm) in InstPropertiesCompare() 150 CHECK_OR_RETURN(StoreArrayI, GetImm) in InstPropertiesCompare() 151 CHECK_OR_RETURN(StoreArrayPairI, GetImm) in InstPropertiesCompare() 152 CHECK_OR_RETURN(LoadArrayPair, GetImm) in InstPropertiesCompare() 153 CHECK_OR_RETURN(StoreArrayPair, GetImm) in InstPropertiesCompare() 154 CHECK_OR_RETURN(BoundsCheckI, GetImm) in InstPropertiesCompare() [all …]
|
| D | encoder_operands.cpp | 211 ASSERT_EQ(typedImmU8Z.GetImm().GetAsInt(), u8Z); in TEST() 212 ASSERT_EQ(typedImmU8.GetImm().GetAsInt(), u8); in TEST() 223 ASSERT_EQ(typedImmU16Z.GetImm().GetAsInt(), u16Z); in TEST() 224 ASSERT_EQ(typedImmU16.GetImm().GetAsInt(), u16); in TEST() 253 ASSERT_EQ(typedImmU32Z.GetImm().GetAsInt(), u32Z); in TEST() 254 ASSERT_EQ(typedImmU32.GetImm().GetAsInt(), u32); in TEST() 265 ASSERT_EQ(typedImmU64Z.GetImm().GetAsInt(), u64Z); in TEST() 266 ASSERT_EQ(typedImmU64.GetImm().GetAsInt(), u64); in TEST() 289 ASSERT_EQ(typedImmI8Z.GetImm().GetAsInt(), i8Z); in TEST() 290 ASSERT_EQ(typedImmI8.GetImm().GetAsInt(), i8); in TEST() [all …]
|
| /arkcompiler/runtime_core/static_core/libpandafile/tests/ |
| D | bytecode_instruction_tests.cpp | 38 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V4_IMM4, 0>()), -6); in TEST() 46 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V4_IMM4, 0>()), 0x2); in TEST() 54 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST() 61 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM8, 0>()), 0x21); in TEST() 70 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST() 78 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM8, 0>()), 0x12); in TEST() 86 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM16, 0>()), 0x12f2); in TEST() 93 … EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::IMM16, 0>()), static_cast<int16_t>(0xf212)); in TEST() 102 EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM16, 0>()), 0x12f2); in TEST() 110 …EXPECT_EQ((inst.GetImm<BytecodeInstruction::Format::V8_IMM16, 0>()), static_cast<int16_t>(0xf212)); in TEST() [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
| D | inst_templates.yaml | 29 …inst_check->SetInput(0, FindOrCreate32BitConstant(instruction->GetImm<<%= inst.get_format %>, 0>()… 48 … inst->SetInput(1, FindOrCreate32BitConstant(instruction->GetImm<<%=inst.get_format%>, 0>())); 50 inst->SetInput(1, FindOrCreateConstant(instruction->GetImm<<%=inst.get_format%>, 0>())); 98 …tVReg<<%=inst.get_format%>, 0>(), FindOrCreate32BitConstant(instruction->GetImm<<%=inst.get_format… 100 …n->GetVReg<<%=inst.get_format%>, 0>(), FindOrCreateConstant(instruction->GetImm<<%=inst.get_format… 103 …n->GetVReg<<%=inst.get_format%>, 0>(), FindOrCreateConstant(instruction->GetImm<<%=inst.get_format… 111 auto imm = bit_cast<float>(instruction->GetImm<<%=inst.get_format%>, 0>()); 114 auto imm = bit_cast<double>(instruction->GetImm<<%=inst.get_format%>, 0>()); 123 … UpdateDefinitionAcc(FindOrCreate32BitConstant(instruction->GetImm<<%=inst.get_format%>, 0>())); 125 UpdateDefinitionAcc(FindOrCreateConstant(instruction->GetImm<<%=inst.get_format%>, 0>())); [all …]
|
| /arkcompiler/runtime_core/libabckit/src/irbuilder_dynamic/templates/ |
| D | inst_templates.yaml | 28 …instCheck->SetInput(0, FindOrCreate32BitConstant(instruction->GetImm<<%= inst.get_format %>, 0>())… 43 inst->SetInput(1, FindOrCreate32BitConstant(instruction->GetImm<<%=inst.get_format%>, 0>())); 83 …UpdateDefinition(instruction->GetVReg(), FindOrCreate32BitConstant(instruction->GetImm<<%=inst.get… 85 …UpdateDefinition(instruction->GetVReg(), FindOrCreateConstant(instruction->GetImm<<%=inst.get_form… 93 auto imm = bit_cast<float>(instruction->GetImm<<%=inst.get_format%>, 0>()); 96 auto imm = bit_cast<double>(instruction->GetImm<<%=inst.get_format%>, 0>()); 104 UpdateDefinitionAcc(FindOrCreate32BitConstant(instruction->GetImm<<%=inst.get_format%>, 0>())); 106 UpdateDefinitionAcc(FindOrCreateConstant(instruction->GetImm<<%=inst.get_format%>, 0>())); 115 auto imm = bit_cast<double>(instruction->GetImm<<%=inst.get_format%>, 0>()); 120 …inst->SetInput(<%= idx %>, FindOrCreate32BitConstant(instruction->GetImm<<%= inst.get_format %>, 0…
|
| D | inst_builder_dyn_gen.cpp.erb | 41 …return "FindOrCreateConstant(instruction->GetImm<#{get_format}, #{get_input_idx(index, :imm?)}>())… 216 return inst->GetImm<BytecodeInst::Format::<%= inst.format.pretty.upcase %>, 0, true>(); 312 …size_t argsCount = <%= num_inputs %>U + static_cast<size_t>(bcInst->GetImm<<%= format %>, <%= has_… 339 …auto imm<%= imm_index %> = static_cast<uint32_t>(bcInst->GetImm<<%= format %>, <%= imm_index %>, f…
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/ |
| D | inst_templates.yaml | 29 …inst_check->SetInput(0, FindOrCreate32BitConstant(instruction->GetImm<<%= inst.get_format %>, 0>()… 83 … inst->SetInput(1, FindOrCreate32BitConstant(instruction->GetImm<<%=inst.get_format%>, 0>())); 85 inst->SetInput(1, FindOrCreateConstant(instruction->GetImm<<%=inst.get_format%>, 0>())); 155 …tVReg<<%=inst.get_format%>, 0>(), FindOrCreate32BitConstant(instruction->GetImm<<%=inst.get_format… 157 …n->GetVReg<<%=inst.get_format%>, 0>(), FindOrCreateConstant(instruction->GetImm<<%=inst.get_format… 160 …n->GetVReg<<%=inst.get_format%>, 0>(), FindOrCreateConstant(instruction->GetImm<<%=inst.get_format… 168 auto imm = bit_cast<float>(instruction->GetImm<<%=inst.get_format%>, 0>()); 171 auto imm = bit_cast<double>(instruction->GetImm<<%=inst.get_format%>, 0>()); 182 … UpdateDefinitionAcc(FindOrCreate32BitConstant(instruction->GetImm<<%=inst.get_format%>, 0>())); 184 UpdateDefinitionAcc(FindOrCreateConstant(instruction->GetImm<<%=inst.get_format%>, 0>())); [all …]
|
| /arkcompiler/runtime_core/static_core/abc2program/templates/ |
| D | abc_inst_convert.cpp.erb | 42 …ins.imms.emplace_back(bit_cast<double, int64_t>(bcIns.GetImm<BytecodeInstruction::Format::<%=i.for… 44 …ins.imms.emplace_back(bit_cast<float, int32_t>(bcIns.GetImm<BytecodeInstruction::Format::<%=i.form… 48 …ins.imms.emplace_back(static_cast<int64_t>(bcIns.GetImm<BytecodeInstruction::Format::<%=i.format.p… 50 …ins.imms.emplace_back(bcIns.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upcase%>, <%=im…
|
| /arkcompiler/runtime_core/bytecode_optimizer/tests/ |
| D | common.h | 375 CHECK(IfImm, GetImm) in Compare() 378 CHECK(LoadArrayI, GetImm) in Compare() 379 CHECK(LoadArrayPairI, GetImm) in Compare() 380 CHECK(LoadPairPart, GetImm) in Compare() 381 CHECK(StoreArrayI, GetImm) in Compare() 382 CHECK(StoreArrayPairI, GetImm) in Compare() 383 CHECK(BoundsCheckI, GetImm) in Compare() 384 CHECK(ReturnI, GetImm) in Compare() 385 CHECK(AddI, GetImm) in Compare() 386 CHECK(SubI, GetImm) in Compare() [all …]
|
| /arkcompiler/runtime_core/disassembler/templates/ |
| D | bc_ins_to_pandasm_ins.cpp.erb | 38 …ins.imms.push_back(bit_cast<double>(bc_ins.GetImm<BytecodeInstruction::Format::<%=inst.format.pret… 40 …ins.imms.push_back(static_cast<int64_t>(bc_ins.GetImm<BytecodeInstruction::Format::<%=inst.format.… 42 …ins.imms.push_back(static_cast<int64_t>(bc_ins.GetImm<BytecodeInstruction::Format::<%=inst.format.…
|
| /arkcompiler/runtime_core/abc2program/common/ |
| D | abc_inst_convert.cpp.erb | 41 …ins.imms.push_back(bit_cast<double>(bc_ins.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.… 43 …ins.imms.push_back(static_cast<int64_t>(bc_ins.GetImm<BytecodeInstruction::Format::<%=i.format.pre… 45 …ins.imms.push_back(static_cast<int64_t>(bc_ins.GetImm<BytecodeInstruction::Format::<%=i.format.pre…
|
| /arkcompiler/runtime_core/static_core/bytecode_optimizer/tests/ |
| D | common.h | 393 CHECK(IfImm, GetImm); in Compare() 396 CHECK(LoadArrayI, GetImm); in Compare() 397 CHECK(LoadArrayPairI, GetImm); in Compare() 398 CHECK(LoadPairPart, GetImm); in Compare() 399 CHECK(StoreArrayI, GetImm); in Compare() 400 CHECK(StoreArrayPairI, GetImm); in Compare() 401 CHECK(BoundsCheckI, GetImm); in Compare() 402 CHECK(ReturnI, GetImm); in Compare() 403 CHECK(AddI, GetImm); in Compare() 404 CHECK(SubI, GetImm); in Compare() [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/ |
| D | alias_analysis.cpp | 185 return lhs.GetImm() < rhs.GetImm(); in PointerLess() 361 if ((equal == Trilean::FALSE && p1.GetImm() == p2.GetImm()) || in CheckMemAddressEmptyIntersectionCase() 362 (equal == Trilean::TRUE && p1.GetImm() != p2.GetImm())) { in CheckMemAddressEmptyIntersectionCase() 368 if (equal == Trilean::FALSE && p1.GetImm() == p2.GetImm()) { in CheckMemAddressEmptyIntersectionCase() 445 sum += p->GetImm(); in CombineIdxAndImm() 458 return p1->GetImm() == p2->GetImm() ? MUST_ALIAS : NO_ALIAS; in AliasingTwoArrayPointers() 487 if (p1.GetImm() != p2.GetImm()) { in SingleIntersectionAliasing() 514 … Pointer p = Pointer::CreateObjectField(alias.GetBase(), edge.GetImm(), edge.GetTypePtr()); in SolveConstraintsMainLoop() 521 Pointer p = Pointer::CreateObjectField(ref.GetBase(), edge.GetImm(), edge.GetTypePtr()); in SolveConstraintsMainLoop() 530 … Pointer p = Pointer::CreateArrayElement(alias.GetBase(), edge.GetIdx(), edge.GetImm()); in SolveConstraintsMainLoop() [all …]
|
| D | countable_loop_parser.cpp | 126 loopInfo.ifImm->CastToIfImm()->GetImm() != preHeaderIfImm->CastToIfImm()->GetImm()) { in HasPreHeaderCompare() 287 ASSERT(loopInfo_.ifImm->CastToIfImm()->GetImm() == 0); in SetNormalizedConditionCode()
|
| /arkcompiler/runtime_core/static_core/irtoc/backend/compiler/ |
| D | dangling_pointers_checker.cpp | 66 auto imm = static_cast<BinaryImmOperation *>(inst)->GetImm(); in IsObjectDef() 111 static_cast<LoadInstI *>(inst)->GetImm() == ark::ManagedThread::GetFrameOffset()) { in IsFrameDef() 117 …if (static_cast<LoadInstI *>(inst)->GetImm() == static_cast<uint64_t>(ark::Frame::GetPrevFrameOffs… in IsFrameDef() 167 auto loadImm = static_cast<LoadInstI *>(inst)->GetImm(); in GetAccAndFrameDefs() 199 auto loadImm = static_cast<LoadInstI *>(inst)->GetImm(); in IsAccTagDef() 217 auto instImm = static_cast<BinaryImmOperation *>(inst)->GetImm(); in IsAccTagPtr() 232 auto instImm = static_cast<BinaryImmOperation *>(inst)->GetImm(); in IsAccPtr() 430 if (static_cast<const StoreInstI *>(inst)->GetImm() != frameAccOffset) { in IsSaveAcc() 484 if (static_cast<StoreInstI *>(prevInst)->GetImm() != accTagOffset) { in CheckStoreAccTag()
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
| D | dump.cpp | 271 (*out) << ", 0x" << std::hex << GetImm() << std::dec; in DumpInputs() 278 (*out) << ", " << GetShiftTypeStr(GetShiftType()) << " 0x" << std::hex << GetImm() << std::dec; in DumpInputs() 285 (*out) << ", " << GetShiftTypeStr(GetShiftType()) << " 0x" << std::hex << GetImm() << std::dec; in DumpInputs() 292 (*out) << ", 0x" << std::hex << GetImm() << std::dec; in DumpInputs() 299 (*out) << ", 0x" << std::hex << GetImm() << std::dec; in DumpInputs() 946 (*out) << ", 0x" << std::hex << GetImm() << std::dec; in DumpInputs() 959 (*out) << ", 0x" << std::hex << GetImm() << std::dec; in DumpInputs() 974 (*out) << ", 0x" << std::hex << GetImm() << std::dec; in DumpInputs() 989 (*out) << ", 0x" << std::hex << GetImm() << std::dec; in DumpInputs() 997 (*out) << ", 0x" << std::hex << GetImm() << std::dec; in DumpInputs() [all …]
|
| D | analysis.cpp | 245 size_t index = array->GetImm(); in CanArrayAccessBeImplicit() 257 size_t offset = dataoffset + (inst->GetImm() << shift); in CanLoadArrayIBeImplicit() 808 if (ifImm0->GetImm() != 0 && ifImm0->GetImm() != 1) { in IsConditionEqual() 811 if (ifImm1->GetImm() != 0 && ifImm1->GetImm() != 1) { in IsConditionEqual() 814 if (ifImm0->GetImm() != ifImm1->GetImm()) { in IsConditionEqual()
|
| /arkcompiler/runtime_core/static_core/disassembler/templates/ |
| D | bc_ins_to_pandasm_ins.cpp.erb | 39 …ins.imms.emplace_back(static_cast<int64_t>(bcIns.GetImm<BytecodeInstruction::Format::<%=i.format.p… 41 …ins.imms.emplace_back(bcIns.GetImm<BytecodeInstruction::Format::<%=i.format.pretty.upcase%>, <%=im…
|
| /arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
| D | branch_elimination.cpp | 67 bool condResult = (constValue == ifImm->GetImm()); in BranchEliminationConst() 96 ASSERT(ifImm->GetImm() == 0); in BranchEliminationIntrinsic() 97 bool condResult = (constValue == ifImm->GetImm()); in BranchEliminationIntrinsic()
|
| D | lowering.cpp | 79 ASSERT(inst->GetImm() == 0); in LowerIf() 111 if (inst->GetCc() == ConditionCode::CC_EQ && inst->GetImm() == 0) { in LowerIf()
|
| /arkcompiler/runtime_core/libpandafile/templates/ |
| D | bytecode_instruction-inl_gen.h.erb | 248 inline auto BytecodeInst<Mode>::GetImm() const { // NOLINTNEXTLINE(readability-function-size) 355 …imm = static_cast<int64_t>(GetImm<BytecodeInstruction::Format::<%=inst.format.pretty.upcase%>, <%=… 359 …imm = static_cast<int64_t>(GetImm<BytecodeInstruction::Format::<%=inst.format.pretty.upcase%>, <%=… 363 …imm = static_cast<int64_t>(GetImm<BytecodeInstruction::Format::<%=inst.format.pretty.upcase%>, <%=… 515 % op_str = "\"#{sep}\" << bit_cast<double>(inst.template GetImm<BytecodeInst<Mode>::Format:… 517 % op_str = "\"#{sep}\" << inst.template GetImm<BytecodeInst<Mode>::Format::#{inst.format.pr… 519 % op_str = "\"#{sep}\" << inst.template GetImm<BytecodeInst<Mode>::Format::#{inst.format.pr…
|
| /arkcompiler/runtime_core/compiler/optimizer/templates/ |
| D | inst_builder_gen.cpp.erb | 41 …return "FindOrCreateConstant(instruction->GetImm<#{get_format}, #{get_input_idx(index, :imm?)}>())… 188 … return inst->GetImm<BytecodeInstruction::Format::<%= inst.format.pretty.upcase %>, 0, true>(); 292 …size_t args_count = <%= num_inputs %>U + static_cast<size_t>(bc_inst->GetImm<<%= format %>, <%= ha… 315 …auto imm<%= imm_index %> = static_cast<uint32_t>(bc_inst->GetImm<<%= format %>, <%= imm_index %>, …
|
| /arkcompiler/runtime_core/libabckit/src/codegen/ |
| D | codegen_static_isapi.rb | 315 'static_cast<int32_t>(inst->GetImm() & 0xffffffff)' 323 'enc->irInterface_->GetStringIdByOffset(inst->GetImm(0))' 327 'enc->irInterface_->GetLiteralArrayIdByOffset(inst->GetImm(0))' 331 "enc->irInterface_->GetTypeIdByOffset(inst->GetImm(#{idx}))"
|