Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index c6bbba068955aa1627c8ad25c24c738b2c3c0770..3722f1465939fa78d5933eeb9582871750031965 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -3543,7 +3543,7 @@ void LCodeGen::DoMathRound(LUnaryMathOperation* instr) { |
if (CpuFeatures::IsSupported(SSE4_1) && !minus_zero_check) { |
CpuFeatures::Scope scope(SSE4_1); |
__ addsd(xmm_scratch, input_reg); |
- __ roundsd(xmm_scratch, input_reg, Assembler::kRoundDown); |
+ __ roundsd(xmm_scratch, xmm_scratch, Assembler::kRoundDown); |
__ cvttsd2si(output_reg, xmm_scratch); |
// Overflow is signalled with minint. |
__ cmpl(output_reg, Immediate(0x80000000)); |