Skip to content

Commit 5ec253f

Browse files
committed
[AVR] Match static data load instructions to LPMRdZ
(avr-rust/rust-legacy-fork#47)
1 parent 434fe3c commit 5ec253f

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
@@ -1189,7 +1189,7 @@ isReMaterializable = 1 in
11891189
(outs GPR8:$reg),
11901190
(ins LDSTPtrReg:$ptrreg),
11911191
"ld\t$reg, $ptrreg",
1192-
[(set GPR8:$reg, (load i16:$ptrreg))]>,
1192+
[]>,
11931193
Requires<[HasSRAM]>;
11941194

11951195
// LDW Rd+1:Rd, P
@@ -1457,7 +1457,7 @@ hasSideEffects = 0 in
14571457
(outs GPR8:$dst),
14581458
(ins ZREGS:$z),
14591459
"lpm\t$dst, $z",
1460-
[]>,
1460+
[(set GPR8:$dst, (load i16:$z))]>,
14611461
Requires<[HasLPMX]>;
14621462

14631463
def LPMWRdZ : Pseudo<(outs DREGS:$dst),

0 commit comments

Comments
 (0)