Index: src/compiler/int64-lowering.cc |
diff --git a/src/compiler/int64-lowering.cc b/src/compiler/int64-lowering.cc |
index 6a9d68124439bb8eec5994eff2b36b28920397c9..0fd4bf36144c01de8e767a84610df8308a4c45c2 100644 |
--- a/src/compiler/int64-lowering.cc |
+++ b/src/compiler/int64-lowering.cc |
@@ -273,6 +273,24 @@ void Int64Lowering::LowerNode(Node* node) { |
} |
// kExprI64Sub: |
+ case IrOpcode::kInt64Sub: { |
+ DCHECK(node->InputCount() == 2); |
+ |
+ Node* right = node->InputAt(1); |
+ node->ReplaceInput(1, GetReplacementLow(right)); |
+ node->AppendInput(zone(), GetReplacementHigh(right)); |
+ |
+ Node* left = node->InputAt(0); |
+ node->ReplaceInput(0, GetReplacementLow(left)); |
+ node->InsertInput(zone(), 1, GetReplacementHigh(left)); |
+ |
+ NodeProperties::ChangeOp(node, machine()->Int32PairSub()); |
+ // We access the additional return values through projections. |
+ Node* low_node = graph()->NewNode(common()->Projection(0), node); |
+ Node* high_node = graph()->NewNode(common()->Projection(1), node); |
+ ReplaceNode(node, low_node, high_node); |
+ break; |
+ } |
// kExprI64Mul: |
// kExprI64DivS: |
// kExprI64DivU: |