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

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 12:40:46 PST 2022


efriedma added a comment.

When we don't have movw/movt, there is no two-instruction sequence to materialize an arbitrary immediate, so we only use ARM::MOVi32imm in very limited cases.  See https://github.com/llvm/llvm-project/blob/807e2f12fab52c6abf3e89c02eec0f585b3b8f22/llvm/lib/Target/ARM/ARMInstrInfo.td#L836 and https://github.com/llvm/llvm-project/blob/807e2f12fab52c6abf3e89c02eec0f585b3b8f22/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp#L970 .  (Maybe ARMExpandPseudo::ExpandMOV32BitImm should have an assertion to make this clear.)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118545/new/

https://reviews.llvm.org/D118545



More information about the llvm-commits mailing list