OSDN Git Service

Revert "ART: Remove wrong DCHECK"
authorAndreas Gampe <agampe@google.com>
Mon, 24 Nov 2014 22:23:53 +0000 (14:23 -0800)
committerAndreas Gampe <agampe@google.com>
Mon, 24 Nov 2014 22:25:16 +0000 (22:25 +0000)
This reverts commit 5be30072c5a750617dc3f9380776d074f26d9f32.

The underlying computation was fixed in AOSP before.

Bug: 17772057
Bug: 17763227
Bug: 17762845

compiler/dex/quick/arm64/int_arm64.cc

index 0e00698..e8ee28d 100644 (file)
@@ -483,6 +483,7 @@ bool Arm64Mir2Lir::SmallLiteralDivRem64(Instruction::Code dalvik_opcode, bool is
       } else {
         reconstructed_imm = base + 1;
       }
+      DCHECK_EQ(reconstructed_imm, magic_table[lit].magic64) << " for literal " << lit;
     }
 
     // Load the magic constant in two instructions.