diff options
Diffstat (limited to 'compiler/optimizing/codegen_test.cc')
-rw-r--r-- | compiler/optimizing/codegen_test.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc index 68fcb25036..6d4514f0ea 100644 --- a/compiler/optimizing/codegen_test.cc +++ b/compiler/optimizing/codegen_test.cc @@ -543,4 +543,13 @@ TEST(CodegenTest, MaterializedCondition2) { } } +TEST(CodegenTest, ReturnDivIntLit8) { + const uint16_t data[] = ONE_REGISTER_CODE_ITEM( + Instruction::CONST_4 | 4 << 12 | 0 << 8, + Instruction::DIV_INT_LIT8, 3 << 8 | 0, + Instruction::RETURN); + + TestCode(data, true, 1); +} + } // namespace art |