[PATCH] D114939: [ARM] Verify addressing immediates

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 2 02:12:44 PST 2021


dmgreen created this revision.
dmgreen added reviewers: chill, SjoerdMeijer, samtebbs, simon_tatham, ostannard, efriedma.
Herald added subscribers: hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.

This adds at extra check into ARMBaseInstrInfo::verifyInstruction to verify the offsets used in addressing mode immediates using isLegalAddressImm. Some tests needed fixing up as a result, including using t2STRHT instead of t2STRHi8 to test some outliner offsets, and adjusting the opcode created from CMSE stack adjustments.


https://reviews.llvm.org/D114939

Files:
  llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
  llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
  llvm/test/CodeGen/ARM/machine-outliner-stack-fixup-thumb.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D114939.391232.patch
Type: text/x-patch
Size: 4357 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211202/fa36e7b4/attachment.bin>


More information about the llvm-commits mailing list