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 b46906280ecf38bac2bb036b753a4f3f7766bf68..f6a80dec29238d10507c4db22b58e7983983df72 100644 |
--- a/src/compiler/arm64/instruction-selector-arm64.cc |
+++ b/src/compiler/arm64/instruction-selector-arm64.cc |
@@ -57,9 +57,9 @@ class Arm64OperandGenerator V8_FINAL : public OperandGenerator { |
// TODO(dcarney): -values can be handled by instruction swapping |
return Assembler::IsImmAddSub(value); |
case kShift32Imm: |
- return 0 <= value && value < 31; |
+ return 0 <= value && value < 32; |
case kShift64Imm: |
- return 0 <= value && value < 63; |
+ return 0 <= value && value < 64; |
case kLoadStoreImm: |
return (0 <= value && value < (1 << 9)) || |
(-(1 << 6) <= value && value < (1 << 6)); |