Index: src/compiler/s390/instruction-selector-s390.cc |
diff --git a/src/compiler/s390/instruction-selector-s390.cc b/src/compiler/s390/instruction-selector-s390.cc |
index 095b7f9da91a3ba6b8c5ff9db2259c9965e540b6..dbffdeccf0c3711134ff87b4559d4c3c01294575 100644 |
--- a/src/compiler/s390/instruction-selector-s390.cc |
+++ b/src/compiler/s390/instruction-selector-s390.cc |
@@ -754,6 +754,22 @@ void InstructionSelector::VisitWord32Sar(Node* node) { |
} |
#if !V8_TARGET_ARCH_S390X |
+void InstructionSelector::VisitInt32PairAdd(Node* node) { |
+ S390OperandGenerator g(this); |
+ |
+ // We use UseUniqueRegister here to avoid register sharing with the output |
+ // registers. |
+ InstructionOperand inputs[] = { |
+ g.UseRegister(node->InputAt(0)), g.UseUniqueRegister(node->InputAt(1)), |
+ g.UseRegister(node->InputAt(2)), g.UseUniqueRegister(node->InputAt(3))}; |
+ |
+ InstructionOperand outputs[] = { |
+ g.DefineAsRegister(node), |
+ g.DefineAsRegister(NodeProperties::FindProjection(node, 1))}; |
+ |
+ Emit(kS390_AddPair, 2, outputs, 4, inputs); |
+} |
+ |
void VisitPairShift(InstructionSelector* selector, ArchOpcode opcode, |
Node* node) { |
S390OperandGenerator g(selector); |
@@ -855,10 +871,6 @@ void InstructionSelector::VisitInt64Add(Node* node) { |
} |
#endif |
-#if !V8_TARGET_ARCH_S390X |
-void InstructionSelector::VisitInt32PairAdd(Node* node) { UNIMPLEMENTED(); } |
-#endif |
- |
void InstructionSelector::VisitInt32Sub(Node* node) { |
S390OperandGenerator g(this); |
Int32BinopMatcher m(node); |