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 8e663c0701bd0ba7319af646ad48598a54da65e4..ea5a784490b42522819722bfa1f92f7de97821d6 100644 |
--- a/src/compiler/mips64/code-generator-mips64.cc |
+++ b/src/compiler/mips64/code-generator-mips64.cc |
@@ -661,7 +661,7 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
case kMips64Div: |
__ Div(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
if (kArchVariant == kMips64r6) { |
- __ selnez(i.OutputRegister(), i.InputRegister(1), i.InputRegister(0)); |
+ __ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); |
} else { |
__ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); |
} |
@@ -669,7 +669,7 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
case kMips64DivU: |
__ Divu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
if (kArchVariant == kMips64r6) { |
- __ selnez(i.OutputRegister(), i.InputRegister(1), i.InputRegister(0)); |
+ __ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); |
} else { |
__ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); |
} |
@@ -686,7 +686,7 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
case kMips64Ddiv: |
__ Ddiv(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
if (kArchVariant == kMips64r6) { |
- __ selnez(i.OutputRegister(), i.InputRegister(1), i.InputRegister(0)); |
+ __ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); |
} else { |
__ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); |
} |
@@ -694,7 +694,7 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
case kMips64DdivU: |
__ Ddivu(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); |
if (kArchVariant == kMips64r6) { |
- __ selnez(i.OutputRegister(), i.InputRegister(1), i.InputRegister(0)); |
+ __ selnez(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1)); |
} else { |
__ Movz(i.OutputRegister(), i.InputRegister(1), i.InputRegister(1)); |
} |