| Index: src/compiler/arm64/instruction-selector-arm64.cc
|
| diff --git a/src/compiler/arm64/instruction-selector-arm64.cc b/src/compiler/arm64/instruction-selector-arm64.cc
|
| index d7d11702e4c99827521485ec95ebfcd6728abb8d..88871f5c572d1f379c206c1ace0f52df431ebc1d 100644
|
| --- a/src/compiler/arm64/instruction-selector-arm64.cc
|
| +++ b/src/compiler/arm64/instruction-selector-arm64.cc
|
| @@ -1088,7 +1088,7 @@ void InstructionSelector::VisitTruncateFloat64ToFloat32(Node* node) {
|
| void InstructionSelector::VisitTruncateInt64ToInt32(Node* node) {
|
| Arm64OperandGenerator g(this);
|
| Node* value = node->InputAt(0);
|
| - if (CanCover(node, value)) {
|
| + if (CanCover(node, value) && value->InputCount() >= 2) {
|
| Int64BinopMatcher m(value);
|
| if ((m.IsWord64Sar() && m.right().HasValue() &&
|
| (m.right().Value() == 32)) ||
|
|
|