[PATCH] D27480: [AArch64] Correct the check of simm9 in isLegalAddressingMode()

Tim Northover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 13:28:25 PST 2016


t.p.northover added inline comments.


================
Comment at: lib/Target/AArch64/AArch64ISelLowering.cpp:7440
     // 9-bit signed offset
-    if (Offset >= -(1LL << 9) && Offset <= (1LL << 9) - 1)
+    if (Offset >= -(1LL << 8) && Offset <= (1LL << 8) - 1)
       return true;
----------------
It would probably be better to use llvm::isInt<9>.


Repository:
  rL LLVM

https://reviews.llvm.org/D27480





More information about the llvm-commits mailing list