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 831c40e9ffb57950a9ad056e90cddabd874f3784..3852c05bbcaa3f80d15df7958cfcc20aa1cbbbca 100644 |
--- a/src/compiler/ia32/instruction-selector-ia32.cc |
+++ b/src/compiler/ia32/instruction-selector-ia32.cc |
@@ -601,6 +601,24 @@ void InstructionSelector::VisitInt32PairAdd(Node* node) { |
Emit(kIA32AddPair, 2, outputs, 4, inputs, 1, temps); |
} |
+void InstructionSelector::VisitInt32PairSub(Node* node) { |
+ IA32OperandGenerator g(this); |
+ |
+ // We use UseUniqueRegister here to avoid register sharing with the temp |
+ // register. |
+ 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.DefineSameAsFirst(node), |
+ g.DefineAsRegister(NodeProperties::FindProjection(node, 1))}; |
+ |
+ InstructionOperand temps[] = {g.TempRegister()}; |
+ |
+ Emit(kIA32SubPair, 2, outputs, 4, inputs, 1, temps); |
+} |
+ |
void InstructionSelector::VisitWord32PairShl(Node* node) { |
IA32OperandGenerator g(this); |