Bug 996883. r=mjrosenb, a=abillings
authorDouglas Crosher <dtc-moz@scieneer.com>
Thu, 17 Apr 2014 00:08:21 +1000
changeset 191977 4300612b17c5f36ffe73efd72f865bf9cbef8f18
parent 191976 f658c8a4664336b0a35f67578ae529b456f98f57
child 191978 54c701123c5242137a537c961ec5f353d4256544
push id3503
push userraliiev@mozilla.com
push dateMon, 28 Apr 2014 18:51:11 +0000
treeherdermozilla-beta@c95ac01e332e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmjrosenb, abillings
bugs996883
milestone30.0a2
Bug 996883. r=mjrosenb, a=abillings
js/src/jit/arm/MacroAssembler-arm.cpp
--- a/js/src/jit/arm/MacroAssembler-arm.cpp
+++ b/js/src/jit/arm/MacroAssembler-arm.cpp
@@ -359,17 +359,17 @@ MacroAssemblerARM::ma_alu(Register src1,
     // and add{,s} dest, src, 0xff00; add{,s} dest, dest, 0xff is not
     // guaranteed to set the overflow flag the same as the (theoretical)
     // one instruction variant.
     if (alu_dbl(src1, imm, dest, op, sc, c))
         return;
 
     // And try with its negative.
     if (negOp != op_invalid &&
-        alu_dbl(src1, negImm, dest, negOp, sc, c))
+        alu_dbl(src1, negImm, negDest, negOp, sc, c))
         return;
 
     // Well, damn. We can use two 16 bit mov's, then do the op
     // or we can do a single load from a pool then op.
     if (hasMOVWT()) {
         // Try to load the immediate into a scratch register
         // then use that
         as_movw(ScratchRegister, imm.value & 0xffff, c);