Index: src/compiler/arm/instruction-selector-arm.cc |
diff --git a/src/compiler/arm/instruction-selector-arm.cc b/src/compiler/arm/instruction-selector-arm.cc |
index 7def9bd7979442e017e309cbec4ca176e9ad5d10..bf32fddb406a8d8be175b25aa118bdced5d104b0 100644 |
--- a/src/compiler/arm/instruction-selector-arm.cc |
+++ b/src/compiler/arm/instruction-selector-arm.cc |
@@ -769,7 +769,26 @@ void InstructionSelector::VisitWord32Sar(Node* node) { |
VisitShift(this, node, TryMatchASR); |
} |
-void InstructionSelector::VisitWord32PairShl(Node* node) { UNIMPLEMENTED(); } |
+void InstructionSelector::VisitWord32PairShl(Node* node) { |
+ ArmOperandGenerator g(this); |
+ Int32Matcher m(node->InputAt(2)); |
+ InstructionOperand shift_operand; |
+ if (m.HasValue()) { |
+ shift_operand = g.UseImmediate(m.node()); |
+ } else { |
+ shift_operand = g.UseUniqueRegister(m.node()); |
+ } |
+ |
+ InstructionOperand inputs[] = {g.UseRegister(node->InputAt(0)), |
+ g.UseRegister(node->InputAt(1)), |
+ shift_operand}; |
+ |
+ InstructionOperand outputs[] = { |
+ g.DefineSameAsFirst(node), |
+ g.DefineAsRegister(NodeProperties::FindProjection(node, 1))}; |
+ |
+ Emit(kArmPairLsl, 2, outputs, 3, inputs); |
+} |
void InstructionSelector::VisitWord32Ror(Node* node) { |
VisitShift(this, node, TryMatchROR); |