diff options
author | Calin Juravle <calin@google.com> | 2014-11-06 17:28:21 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-11-06 17:28:22 +0000 |
commit | 9b6c62b82e3d40d70d541920d5f7f81ad517bc01 (patch) | |
tree | c75397fca9adddde7f6d3ab0fbc30bdaa7e443c4 /compiler/optimizing/codegen_test.cc | |
parent | e257d2c27f5565fb55de9122e093371ea2671271 (diff) | |
parent | 865fc88fdfd006ce0362c2c0d55c66a7bffdab61 (diff) | |
download | android_art-9b6c62b82e3d40d70d541920d5f7f81ad517bc01.tar.gz android_art-9b6c62b82e3d40d70d541920d5f7f81ad517bc01.tar.bz2 android_art-9b6c62b82e3d40d70d541920d5f7f81ad517bc01.zip |
Merge "[optimizing compiler] Add DIV_INT_2ADDR"
Diffstat (limited to 'compiler/optimizing/codegen_test.cc')
-rw-r--r-- | compiler/optimizing/codegen_test.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc index a7b64c9e3b..ecee44392e 100644 --- a/compiler/optimizing/codegen_test.cc +++ b/compiler/optimizing/codegen_test.cc @@ -625,4 +625,18 @@ TEST(CodegenTest, ReturnDivIntLit8) { TestCode(data, true, 1); } +#if defined(__aarch64__) +TEST(CodegenTest, DISABLED_ReturnDivInt2Addr) { +#else +TEST(CodegenTest, ReturnDivInt2Addr) { +#endif + const uint16_t data[] = TWO_REGISTERS_CODE_ITEM( + Instruction::CONST_4 | 4 << 12 | 0, + Instruction::CONST_4 | 2 << 12 | 1 << 8, + Instruction::DIV_INT_2ADDR | 1 << 12, + Instruction::RETURN); + + TestCode(data, true, 2); +} + } // namespace art |