Bug 1393723 - Fix incorrect copySign lowering on mips. r=lth
authorDragan Mladjenovic <dragan.mladjenovic@rt-rk.com>
Fri, 25 Aug 2017 02:49:00 -0400
changeset 377566 166c94ca628c
parent 377565 540cd433f474
child 377567 81cdf89896a3
push id94292
push userryanvm@gmail.com
push dateTue, 29 Aug 2017 18:45:26 +0000
treeherdermozilla-inbound@81cdf89896a3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerslth
bugs1393723
milestone57.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1393723 - Fix incorrect copySign lowering on mips. r=lth
js/src/jit/mips-shared/Lowering-mips-shared.cpp
--- a/js/src/jit/mips-shared/Lowering-mips-shared.cpp
+++ b/js/src/jit/mips-shared/Lowering-mips-shared.cpp
@@ -751,17 +751,17 @@ LIRGeneratorMIPSShared::visitCopySign(MC
     if (lhs->type() == MIRType::Double)
         lir = new(alloc()) LCopySignD();
     else
         lir = new(alloc()) LCopySignF();
 
     lir->setTemp(0, temp());
     lir->setTemp(1, temp());
 
-    lir->setOperand(0, useRegister(lhs));
+    lir->setOperand(0, useRegisterAtStart(lhs));
     lir->setOperand(1, useRegister(rhs));
     defineReuseInput(lir, ins, 0);
 }
 
 void
 LIRGeneratorMIPSShared::visitExtendInt32ToInt64(MExtendInt32ToInt64* ins)
 {
     defineInt64(new(alloc()) LExtendInt32ToInt64(useRegisterAtStart(ins->input())), ins);