Index: src/compiler/ia32/instruction-selector-ia32.cc |
diff --git a/src/compiler/ia32/instruction-selector-ia32.cc b/src/compiler/ia32/instruction-selector-ia32.cc |
index 35c3660a24356d27ccdd34ae6588967d0c71f40d..e197eb6af409b30e139c8d857b018fa49dfbf3ff 100644 |
--- a/src/compiler/ia32/instruction-selector-ia32.cc |
+++ b/src/compiler/ia32/instruction-selector-ia32.cc |
@@ -601,7 +601,49 @@ void InstructionSelector::VisitWord32PairShl(Node* node) { |
g.DefineAsFixed(node, eax), |
g.DefineAsFixed(NodeProperties::FindProjection(node, 1), edx)}; |
- Emit(kIA32PairShl, 2, outputs, 3, inputs); |
+ Emit(kIA32ShlPair, 2, outputs, 3, inputs); |
+} |
+ |
+void InstructionSelector::VisitWord32PairShr(Node* node) { |
+ IA32OperandGenerator g(this); |
+ |
+ Node* shift = node->InputAt(2); |
+ InstructionOperand shift_operand; |
+ if (g.CanBeImmediate(shift)) { |
+ shift_operand = g.UseImmediate(shift); |
+ } else { |
+ shift_operand = g.UseFixed(shift, ecx); |
+ } |
+ InstructionOperand inputs[] = {g.UseFixed(node->InputAt(0), eax), |
+ g.UseFixed(node->InputAt(1), edx), |
+ shift_operand}; |
+ |
+ InstructionOperand outputs[] = { |
+ g.DefineAsFixed(node, eax), |
+ g.DefineAsFixed(NodeProperties::FindProjection(node, 1), edx)}; |
+ |
+ Emit(kIA32ShrPair, 2, outputs, 3, inputs); |
+} |
+ |
+void InstructionSelector::VisitWord32PairSar(Node* node) { |
+ IA32OperandGenerator g(this); |
+ |
+ Node* shift = node->InputAt(2); |
+ InstructionOperand shift_operand; |
+ if (g.CanBeImmediate(shift)) { |
+ shift_operand = g.UseImmediate(shift); |
+ } else { |
+ shift_operand = g.UseFixed(shift, ecx); |
+ } |
+ InstructionOperand inputs[] = {g.UseFixed(node->InputAt(0), eax), |
+ g.UseFixed(node->InputAt(1), edx), |
+ shift_operand}; |
+ |
+ InstructionOperand outputs[] = { |
+ g.DefineAsFixed(node, eax), |
+ g.DefineAsFixed(NodeProperties::FindProjection(node, 1), edx)}; |
+ |
+ Emit(kIA32SarPair, 2, outputs, 3, inputs); |
} |
void InstructionSelector::VisitWord32Ror(Node* node) { |