[PATCH] D27537: [AArch64] Correct the check of signed 9-bit imm in getIndexedAddressParts()

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 13:38:40 PST 2016


efriedma added inline comments.


================
Comment at: lib/Target/AArch64/AArch64ISelLowering.cpp:10248
+    if (Op->getOpcode() == ISD::SUB)
+      RHSC *= -1;
+    if (!isInt<9>(RHSC))
----------------
This has undefined behavior if RHCS == INT64_MIN.


Repository:
  rL LLVM

https://reviews.llvm.org/D27537





More information about the llvm-commits mailing list