Skip to content

Commit 2e05eca

Browse files
committed
[AVR] Match 16-bit static data load instructions to LPMWRdZ
(avr-rust/rust-legacy-fork#47)
1 parent d7054a2 commit 2e05eca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Target/AVR/AVRInstrInfo.td

+2-2
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ isReMaterializable = 1 in
12031203
def LDWRdPtr : Pseudo<(outs DREGS:$reg),
12041204
(ins PTRDISPREGS:$ptrreg),
12051205
"ldw\t$reg, $ptrreg",
1206-
[(set i16:$reg, (load i16:$ptrreg))]>,
1206+
[]>,
12071207
Requires<[HasSRAM]>;
12081208
}
12091209

@@ -1465,7 +1465,7 @@ hasSideEffects = 0 in
14651465
def LPMWRdZ : Pseudo<(outs DREGS:$dst),
14661466
(ins ZREGS:$z),
14671467
"lpmw\t$dst, $z",
1468-
[]>,
1468+
[(set DREGS:$dst, (load i16:$z))]>,
14691469
Requires<[HasLPMX]>;
14701470

14711471
// Load program memory, while postincrementing the Z register.

0 commit comments

Comments
 (0)