Index: src/crankshaft/x64/lithium-x64.cc |
diff --git a/src/crankshaft/x64/lithium-x64.cc b/src/crankshaft/x64/lithium-x64.cc |
index 79bd989d80aa87369e1add634f2fa96d6cfc857b..7a29d9930478d44fec747c7600f6e65d4220de98 100644 |
--- a/src/crankshaft/x64/lithium-x64.cc |
+++ b/src/crankshaft/x64/lithium-x64.cc |
@@ -714,10 +714,10 @@ LInstruction* LChunkBuilder::DoArithmeticD(Token::Value op, |
DCHECK(instr->left()->representation().IsDouble()); |
DCHECK(instr->right()->representation().IsDouble()); |
if (op == Token::MOD) { |
- LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); |
+ LOperand* left = UseFixedDouble(instr->BetterLeftOperand(), xmm0); |
LOperand* right = UseFixedDouble(instr->BetterRightOperand(), xmm1); |
LArithmeticD* result = new(zone()) LArithmeticD(op, left, right); |
- return MarkAsCall(DefineSameAsFirst(result), instr); |
+ return MarkAsCall(DefineFixedDouble(result, xmm0), instr); |
} else { |
LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); |
LOperand* right = UseRegisterAtStart(instr->BetterRightOperand()); |