diff options
author | 2016-08-15 16:08:18 +0100 | |
---|---|---|
committer | 2016-08-18 10:36:29 +0100 | |
commit | 673d1fb3a9db020cdebc6a05f9b53fc43ad524ed (patch) | |
tree | c1ae618d0af044714724bddb796bbc34aeafdb42 /runtime/dex_instruction_test.cc | |
parent | d1272553516e6595dea310d07d7b974dcd0a421f (diff) |
dex_instruction: k45cc HasVarArgs
Change-Id: I3be92269bb78c96ec41ab533c5792bd369c02178
Test: make test-art-host
bug: 30550796
Diffstat (limited to 'runtime/dex_instruction_test.cc')
-rw-r--r-- | runtime/dex_instruction_test.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/runtime/dex_instruction_test.cc b/runtime/dex_instruction_test.cc index 00c8e07a72..95e4181a8e 100644 --- a/runtime/dex_instruction_test.cc +++ b/runtime/dex_instruction_test.cc @@ -92,6 +92,15 @@ TEST(Instruction, PropertiesOf45cc) { ASSERT_TRUE(ins->HasVRegH()); ASSERT_EQ(32, ins->VRegH()); ASSERT_EQ(32, ins->VRegH_45cc()); + + ASSERT_TRUE(ins->HasVarArgs()); + + uint32_t arg_regs[Instruction::kMaxVarArgRegs]; + ins->GetVarArgs(arg_regs); + ASSERT_EQ(0xeu, arg_regs[0]); + ASSERT_EQ(0xfu, arg_regs[1]); + ASSERT_EQ(0xau, arg_regs[2]); + ASSERT_EQ(0xcu, arg_regs[3]); } TEST(Instruction, PropertiesOf4rcc) { @@ -118,6 +127,8 @@ TEST(Instruction, PropertiesOf4rcc) { ASSERT_TRUE(ins->HasVRegH()); ASSERT_EQ(32, ins->VRegH()); ASSERT_EQ(32, ins->VRegH_4rcc()); + + ASSERT_FALSE(ins->HasVarArgs()); } } // namespace art |