Index: src/compiler/mips64/code-generator-mips64.cc |
diff --git a/src/compiler/mips64/code-generator-mips64.cc b/src/compiler/mips64/code-generator-mips64.cc |
index 56c6fe19615c38b5df3c1db4b3a9f86351d57c00..24753838d28d3b5a90a39bae114c32a2446a7e67 100644 |
--- a/src/compiler/mips64/code-generator-mips64.cc |
+++ b/src/compiler/mips64/code-generator-mips64.cc |
@@ -1120,8 +1120,10 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
} |
case kMips64TruncUlS: { |
FPURegister scratch = kScratchDoubleReg; |
+ Register result = instr->OutputCount() > 1 ? i.OutputRegister(1) : no_reg; |
// TODO(plind): Fix wrong param order of Trunc_ul_s() macro-asm function. |
- __ Trunc_ul_s(i.InputDoubleRegister(0), i.OutputRegister(), scratch); |
+ __ Trunc_ul_s(i.InputDoubleRegister(0), i.OutputRegister(), scratch, |
+ result); |
break; |
} |
case kMips64TruncUlD: { |