This fixes https://github.com/llvm/llvm-project/issues/63701.
Not sure if there's any more elegant way to do this at this level;
this seems to fix the issue at least.
(Should the MI operand registers be marked with more flags, as killed etc?)
Differential D155447
[AArch64] Fix an immediate out of range for large realignments on Windows mstorsjo on Jul 17 2023, 5:26 AM. Authored by
Details This fixes https://github.com/llvm/llvm-project/issues/63701. Not sure if there's any more elegant way to do this at this level; (Should the MI operand registers be marked with more flags, as killed etc?)
Diff Detail
Event TimelineComment Actions LGTM
Comment Actions Added some kill/define flags for registers, and missing FrameSetup flags. Will push later.
Comment Actions Updated to use ADDXrx64 which works properly for SP, fixing the tests when expensive checks are enabled, and also fixing the actually encoded instruction. |
You could stick a kill flag on x16 here, I guess, although it doesn't matter much this late in the pipeline.
Probably we should stick a FrameSetup flag on the add (for both cases).