Home
last modified time | relevance | path

Searched refs:BytecodeInstructionSafe (Results 1 – 2 of 2) sorted by relevance

/arkcompiler/runtime_core/libpandafile/tests/
Dbytecode_instruction_tests.cpp257 TEST(BytecodeInstructionSafe, Parse) in TEST() argument
263 BytecodeInstructionSafe inst(bytecode, &bytecode[0], &bytecode[sizeof(bytecode) - 1]); in TEST()
265 EXPECT_EQ((inst.GetVReg<BytecodeInstructionSafe::Format::V4_IMM4, 0>()), 1); in TEST()
266 EXPECT_EQ((inst.GetImm<BytecodeInstructionSafe::Format::V4_IMM4, 0>()), -6); in TEST()
271 BytecodeInstructionSafe inst(bytecode, &bytecode[0], &bytecode[sizeof(bytecode) - 1]); in TEST()
273 EXPECT_EQ((inst.GetVReg<BytecodeInstructionSafe::Format::V4_IMM4, 0>()), 0xf); in TEST()
274 EXPECT_EQ((inst.GetImm<BytecodeInstructionSafe::Format::V4_IMM4, 0>()), 0x2); in TEST()
280 BytecodeInstructionSafe inst(bytecode, &bytecode[0], &bytecode[sizeof(bytecode) - 1]); in TEST()
282 … EXPECT_EQ((inst.GetImm<BytecodeInstructionSafe::Format::IMM8, 0>()), static_cast<int8_t>(0xf2)); in TEST()
287 BytecodeInstructionSafe inst(bytecode, &bytecode[0], &bytecode[sizeof(bytecode) - 1]); in TEST()
[all …]
/arkcompiler/runtime_core/libpandafile/
Dbytecode_instruction.h410 using BytecodeInstructionSafe = BytecodeInst<BytecodeInstMode::SAFE>; variable