Index: src/compiler/ppc/instruction-selector-ppc.cc |
diff --git a/src/compiler/ppc/instruction-selector-ppc.cc b/src/compiler/ppc/instruction-selector-ppc.cc |
index da9ce5fc5dccbaf26898afda8883448c88f7d378..2f18ed202f52226c4965198172f46e8825165fec 100644 |
--- a/src/compiler/ppc/instruction-selector-ppc.cc |
+++ b/src/compiler/ppc/instruction-selector-ppc.cc |
@@ -947,11 +947,19 @@ void InstructionSelector::VisitTruncateFloat32ToUint64(Node* node) { |
void InstructionSelector::VisitTryTruncateFloat64ToUint64(Node* node) { |
- if (NodeProperties::FindProjection(node, 1)) { |
- // TODO(ppc): implement the second return value. |
- UNIMPLEMENTED(); |
+ PPCOperandGenerator 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); |
} |
- VisitRR(this, kPPC_DoubleToUint64, node); |
+ |
+ Emit(kPPC_DoubleToUint64, output_count, outputs, 1, inputs); |
} |