| Index: src/compiler/x87/instruction-selector-x87.cc
|
| diff --git a/src/compiler/x87/instruction-selector-x87.cc b/src/compiler/x87/instruction-selector-x87.cc
|
| index 7d6f762f1c4ed05076547e6ac7daa339ce65ee8f..b43db54668ce344d0b7abe36a5820a69436b08cf 100644
|
| --- a/src/compiler/x87/instruction-selector-x87.cc
|
| +++ b/src/compiler/x87/instruction-selector-x87.cc
|
| @@ -544,7 +544,23 @@ void InstructionSelector::VisitWord32Sar(Node* node) {
|
| VisitShift(this, node, kX87Sar);
|
| }
|
|
|
| -void InstructionSelector::VisitInt32PairAdd(Node* node) { UNIMPLEMENTED(); }
|
| +void InstructionSelector::VisitInt32PairAdd(Node* node) {
|
| + X87OperandGenerator 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(kX87AddPair, 2, outputs, 4, inputs, 1, temps);
|
| +}
|
|
|
| void InstructionSelector::VisitWord32PairShl(Node* node) {
|
| X87OperandGenerator g(this);
|
|
|