Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 2a10a87ac71e3868e344c9cc2a004cf0ef89a372..477edd88e8d7798340aa752a5a90565511f9a353 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -1631,17 +1631,17 @@ void LCodeGen::DoMathMinMax(LMathMinMax* instr) { |
if (right->IsConstantOperand()) { |
Immediate right_imm = |
Immediate(ToInteger32(LConstantOperand::cast(right))); |
- __ cmpq(left_reg, right_imm); |
+ __ cmpl(left_reg, right_imm); |
__ j(condition, &return_left, Label::kNear); |
__ movq(left_reg, right_imm); |
} else if (right->IsRegister()) { |
Register right_reg = ToRegister(right); |
- __ cmpq(left_reg, right_reg); |
+ __ cmpl(left_reg, right_reg); |
__ j(condition, &return_left, Label::kNear); |
__ movq(left_reg, right_reg); |
} else { |
Operand right_op = ToOperand(right); |
- __ cmpq(left_reg, right_op); |
+ __ cmpl(left_reg, right_op); |
__ j(condition, &return_left, Label::kNear); |
__ movq(left_reg, right_op); |
} |