Bug 996883. r=mjrosenb, a=abillings
authorDouglas Crosher <dtc-moz@scieneer.com>
Thu, 17 Apr 2014 00:08:21 +1000
changeset 183806 9208db873dbf52c1ec4be115dba608f0e6117625
parent 183805 4f4941d4cda98f563816f11e5dca7449f3b02b06
child 183807 a5688b6068832e0dc33b0b627999329417c9479a
push id3494
push userryanvm@gmail.com
push dateSat, 19 Apr 2014 02:28:54 +0000
treeherdermozilla-beta@9208db873dbf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmjrosenb, abillings
Bug 996883. r=mjrosenb, a=abillings
--- a/js/src/jit/arm/MacroAssembler-arm.cpp
+++ b/js/src/jit/arm/MacroAssembler-arm.cpp
@@ -357,17 +357,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))
     // 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))
     // 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);