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 273dab01531749ad11a2cd0ee7ae969d11c53dc5..567c3e2e8281419a54df5ff22a36bb271ce909c2 100644 |
--- a/src/compiler/ppc/instruction-selector-ppc.cc |
+++ b/src/compiler/ppc/instruction-selector-ppc.cc |
@@ -810,7 +810,21 @@ void InstructionSelector::VisitInt32PairSub(Node* node) { |
VisitPairBinop(this, kPPC_SubPair, node); |
} |
-void InstructionSelector::VisitInt32PairMul(Node* node) { UNIMPLEMENTED(); } |
+void InstructionSelector::VisitInt32PairMul(Node* node) { |
+ PPCOperandGenerator g(this); |
+ InstructionOperand inputs[] = {g.UseUniqueRegister(node->InputAt(0)), |
+ g.UseUniqueRegister(node->InputAt(1)), |
+ g.UseUniqueRegister(node->InputAt(2)), |
+ g.UseRegister(node->InputAt(3))}; |
+ |
+ InstructionOperand outputs[] = { |
+ g.DefineAsRegister(node), |
+ g.DefineAsRegister(NodeProperties::FindProjection(node, 1))}; |
+ |
+ InstructionOperand temps[] = {g.TempRegister(), g.TempRegister()}; |
+ |
+ Emit(kPPC_MulPair, 2, outputs, 4, inputs, 2, temps); |
+} |
void VisitPairShift(InstructionSelector* selector, InstructionCode opcode, |
Node* node) { |