Index: src/compiler/x64/code-generator-x64.cc |
diff --git a/src/compiler/x64/code-generator-x64.cc b/src/compiler/x64/code-generator-x64.cc |
index 30b0f9dce62343a590dd93225800537e24460013..ad58f595f84d264be18cbe34bffdd09f98dcc058 100644 |
--- a/src/compiler/x64/code-generator-x64.cc |
+++ b/src/compiler/x64/code-generator-x64.cc |
@@ -791,8 +791,8 @@ void CodeGenerator::AssembleArchInstruction(Instruction* instr) { |
auto result = i.OutputRegister(); |
auto input = i.InputDoubleRegister(0); |
auto ool = new (zone()) OutOfLineTruncateDoubleToI(this, result, input); |
- __ Cvttsd2siq(result, input); |
- __ cmpq(result, Immediate(1)); |
+ __ Cvttsd2si(result, input); |
+ __ cmpl(result, Immediate(1)); |
__ j(overflow, ool->entry()); |
__ bind(ool->exit()); |
break; |