[PATCH] D118545: [ARM] Fix 8-bit immediate overflow in the instruction of segmented stack prologue.

Zhiyao Ma via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 29 16:04:44 PST 2022


ZhiyaoMa98 created this revision.
ZhiyaoMa98 added a reviewer: asl.
Herald added subscribers: hiraditya, kristof.beyls.
ZhiyaoMa98 requested review of this revision.
Herald added a project: LLVM.

For thumb1-only targets, load an immediate number larger than 255 by a sequence of shift and add instructions. For thumb2 targets, load it by a pair of `movw` and `movt` instruction. It fixes the bug that the instructions containing 8-bit immediate number cannot handle the allocation of a stacklet larger  than 255 bytes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118545

Files:
  llvm/lib/Target/ARM/ARMFrameLowering.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118545.404310.patch
Type: text/x-patch
Size: 5488 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220130/b2937b3d/attachment.bin>


More information about the llvm-commits mailing list