summaryrefslogtreecommitdiff
path: root/compiler/optimizing/codegen_test.cc
diff options
context:
space:
mode:
authorCalin Juravle <calin@google.com>2014-11-06 14:49:23 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-11-06 14:49:24 +0000
commit803ad870017503849a22ef4fcb702847c18201c0 (patch)
tree26d7d8af0edd7fc3d40f30b3cf15b051f33a9ee7 /compiler/optimizing/codegen_test.cc
parent863b844e206cddbcd18c77d356766a5fd4e5df22 (diff)
parentd0d4852847432368b090c184d6639e573538dccf (diff)
Merge "[optimizing compiler] Add div-int and exception handling."
Diffstat (limited to 'compiler/optimizing/codegen_test.cc')
-rw-r--r--compiler/optimizing/codegen_test.cc9
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