diff options
| author | 2014-09-15 14:33:50 +0000 | |
|---|---|---|
| committer | 2014-09-15 14:33:50 +0000 | |
| commit | a94986198130f7a2216e1e0d4f5339fb911bcfe9 (patch) | |
| tree | 71debbb7c475be1508e14a7986ed69e75e5b0e4c /compiler/optimizing | |
| parent | 9e7403a073cb5f09dba230868b76b6f9c50882af (diff) | |
| parent | ad1977fb16e11ee2de12a49ebc425f7a872a984a (diff) | |
Merge "Revert "Add tests for IF_EQZ for suspend checks.""
Diffstat (limited to 'compiler/optimizing')
| -rw-r--r-- | compiler/optimizing/builder.cc | 1 | ||||
| -rw-r--r-- | compiler/optimizing/suspend_check_test.cc | 18 |
2 files changed, 1 insertions, 18 deletions
diff --git a/compiler/optimizing/builder.cc b/compiler/optimizing/builder.cc index cbdaec63de..71e71f79d4 100644 --- a/compiler/optimizing/builder.cc +++ b/compiler/optimizing/builder.cc @@ -164,6 +164,7 @@ void HGraphBuilder::If_21t(const Instruction& instruction, uint32_t dex_offset) current_block_->AddInstruction(comparison); HInstruction* ifinst = new (arena_) HIf(comparison); current_block_->AddInstruction(ifinst); + fprintf(stderr, "%d and %d\n", dex_offset, target_offset); HBasicBlock* target = FindBlockStartingAt(dex_offset + target_offset); DCHECK(target != nullptr); current_block_->AddSuccessor(target); diff --git a/compiler/optimizing/suspend_check_test.cc b/compiler/optimizing/suspend_check_test.cc index 2e48ee8e7e..65fc2d8e85 100644 --- a/compiler/optimizing/suspend_check_test.cc +++ b/compiler/optimizing/suspend_check_test.cc @@ -74,22 +74,4 @@ TEST(CodegenTest, CFG4) { TestCode(data); } - -TEST(CodegenTest, CFG5) { - const uint16_t data[] = ONE_REGISTER_CODE_ITEM( - Instruction::CONST_4 | 0 | 0, - Instruction::IF_EQZ, 0xFFFF, - Instruction::RETURN_VOID); - - TestCode(data); -} - -TEST(CodegenTest, CFG6) { - const uint16_t data[] = ONE_REGISTER_CODE_ITEM( - Instruction::CONST_4 | 0 | 0, - Instruction::IF_NEZ, 0xFFFF, - Instruction::RETURN_VOID); - - TestCode(data); -} } // namespace art |