Index: src/compiler/mips64/instruction-selector-mips64.cc |
diff --git a/src/compiler/mips64/instruction-selector-mips64.cc b/src/compiler/mips64/instruction-selector-mips64.cc |
index 11549e189979531fd7a8050b64ff6b133d7a1f77..a30806cfb258dfa3354faabfd8123ee92c7c83d4 100644 |
--- a/src/compiler/mips64/instruction-selector-mips64.cc |
+++ b/src/compiler/mips64/instruction-selector-mips64.cc |
@@ -881,8 +881,19 @@ void InstructionSelector::VisitTryTruncateFloat64ToInt64(Node* node) { |
} |
-void InstructionSelector::VisitTruncateFloat32ToUint64(Node* node) { |
- VisitRR(this, kMips64TruncUlS, node); |
+void InstructionSelector::VisitTryTruncateFloat32ToUint64(Node* node) { |
+ Mips64OperandGenerator g(this); |
+ 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(kMips64TruncUlS, output_count, outputs, 1, inputs); |
} |