Index: runtime/vm/assembler_arm.cc |
=================================================================== |
--- runtime/vm/assembler_arm.cc (revision 29964) |
+++ runtime/vm/assembler_arm.cc (working copy) |
@@ -2442,6 +2442,16 @@ |
} |
+void Assembler::TestImmediate(Register rn, int32_t imm, Condition cond) { |
+ ShifterOperand shifter_op; |
+ if (ShifterOperand::CanHold(imm, &shifter_op)) { |
+ tst(rn, shifter_op, cond); |
+ } else { |
+ LoadImmediate(IP, imm); |
+ tst(rn, ShifterOperand(IP), cond); |
+ } |
+} |
+ |
void Assembler::IntegerDivide(Register result, Register left, Register right, |
DRegister tmpl, DRegister tmpr) { |
ASSERT(tmpl != tmpr); |