[PATCH] D141264: [AVR] Fix incorrect expansion of pseudo instructions LPMWRdZ/ELPMWRdZ

Ayke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 19 06:46:28 PST 2023


aykevl added a comment.

This code modifies the pointer register, without restoring it. The pointer register should be restored to the previous value if it is is not killed (subtract one from the pointer value). See the expansion of LDDWRdPtrQ for avrtiny for example.


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

https://reviews.llvm.org/D141264



More information about the llvm-commits mailing list