| Index: src/compiler/mips64/instruction-selector-mips64.cc
|
| diff --git a/src/compiler/mips64/instruction-selector-mips64.cc b/src/compiler/mips64/instruction-selector-mips64.cc
|
| index 6cb337f97355b639b972590526626fb7c0f17911..f18e17ac9a7ffcac585fa62d7c9461238ce8ac26 100644
|
| --- a/src/compiler/mips64/instruction-selector-mips64.cc
|
| +++ b/src/compiler/mips64/instruction-selector-mips64.cc
|
| @@ -1608,6 +1608,12 @@ void VisitWordCompareZero(InstructionSelector* selector, Node* user,
|
| case IrOpcode::kInt32SubWithOverflow:
|
| cont->OverwriteAndNegateIfEqual(kOverflow);
|
| return VisitBinop(selector, node, kMips64Dsub, cont);
|
| + case IrOpcode::kInt64AddWithOverflow:
|
| + cont->OverwriteAndNegateIfEqual(kOverflow);
|
| + return VisitBinop(selector, node, kMips64DaddOvf, cont);
|
| + case IrOpcode::kInt64SubWithOverflow:
|
| + cont->OverwriteAndNegateIfEqual(kOverflow);
|
| + return VisitBinop(selector, node, kMips64DsubOvf, cont);
|
| default:
|
| break;
|
| }
|
| @@ -1718,6 +1724,26 @@ void InstructionSelector::VisitInt32SubWithOverflow(Node* node) {
|
| }
|
|
|
|
|
| +void InstructionSelector::VisitInt64AddWithOverflow(Node* node) {
|
| + if (Node* ovf = NodeProperties::FindProjection(node, 1)) {
|
| + FlagsContinuation cont(kOverflow, ovf);
|
| + return VisitBinop(this, node, kMips64DaddOvf, &cont);
|
| + }
|
| + FlagsContinuation cont;
|
| + VisitBinop(this, node, kMips64DaddOvf, &cont);
|
| +}
|
| +
|
| +
|
| +void InstructionSelector::VisitInt64SubWithOverflow(Node* node) {
|
| + if (Node* ovf = NodeProperties::FindProjection(node, 1)) {
|
| + FlagsContinuation cont(kOverflow, ovf);
|
| + return VisitBinop(this, node, kMips64DsubOvf, &cont);
|
| + }
|
| + FlagsContinuation cont;
|
| + VisitBinop(this, node, kMips64DsubOvf, &cont);
|
| +}
|
| +
|
| +
|
| void InstructionSelector::VisitWord64Equal(Node* const node) {
|
| FlagsContinuation cont(kEqual, node);
|
| Int64BinopMatcher m(node);
|
|
|