Index: src/compiler/x64/instruction-selector-x64.cc |
diff --git a/src/compiler/x64/instruction-selector-x64.cc b/src/compiler/x64/instruction-selector-x64.cc |
index d41eb7a4902c4b9fe56b24b51067b955ff591948..e5773c39aa8676e6ee08115a8ab5bc3b2380e026 100644 |
--- a/src/compiler/x64/instruction-selector-x64.cc |
+++ b/src/compiler/x64/instruction-selector-x64.cc |
@@ -865,9 +865,19 @@ void InstructionSelector::VisitTryTruncateFloat64ToInt64(Node* node) { |
} |
-void InstructionSelector::VisitTruncateFloat32ToUint64(Node* node) { |
+void InstructionSelector::VisitTryTruncateFloat32ToUint64(Node* node) { |
X64OperandGenerator g(this); |
- Emit(kSSEFloat32ToUint64, g.DefineAsRegister(node), g.Use(node->InputAt(0))); |
+ InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0))}; |
+ InstructionOperand outputs[2]; |
+ size_t output_count = 0; |
+ outputs[output_count++] = g.DefineAsRegister(node); |
+ |
+ Node* success_output = NodeProperties::FindProjection(node, 1); |
+ if (success_output) { |
+ outputs[output_count++] = g.DefineAsRegister(success_output); |
+ } |
+ |
+ Emit(kSSEFloat32ToUint64, output_count, outputs, 1, inputs); |
} |