[PATCH] D141264: [AVR] Fix incorrect expansion of pseudo instructions LPMWRdZ/ELPMWRdZ
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 9 01:46:15 PST 2023
benshi001 created this revision.
benshi001 added reviewers: aykevl, dylanmckay.
Herald added subscribers: Jim, hiraditya.
Herald added a project: All.
benshi001 requested review of this revision.
Herald added subscribers: llvm-commits, jacquesguan.
Herald added a project: LLVM.
The `ELPM` instruction has three forms:
--------------------------
| form | feature |
| ----------- | -------- |
| ELPM | hasELPM |
| ELPM Rd, Z | hasELPMX |
| ELPM Rd, Z+ | hasELPMX |
|
--------------------------
The second form is always used in the expansion of pseudo instructions
`LPMWRdZ`/`ELPMWRdZ`. But for devices without `ELPMX` and with only `ELPM`,
only the first form can be used.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D141264
Files:
llvm/lib/Target/AVR/AVRExpandPseudoInsts.cpp
llvm/test/CodeGen/AVR/elpm.ll
llvm/test/CodeGen/AVR/pseudo/ELPMWRdZ.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141264.487336.patch
Type: text/x-patch
Size: 9810 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230109/50fe4e42/attachment.bin>
More information about the llvm-commits
mailing list