Skip to content

Commit d7054a2

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

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
@@ -1191,7 +1191,7 @@ isReMaterializable = 1 in
11911191
(outs GPR8:$reg),
11921192
(ins LDSTPtrReg:$ptrreg),
11931193
"ld\t$reg, $ptrreg",
1194-
[(set GPR8:$reg, (load i16:$ptrreg))]>,
1194+
[]>,
11951195
Requires<[HasSRAM]>;
11961196

11971197
// LDW Rd+1:Rd, P
@@ -1459,7 +1459,7 @@ hasSideEffects = 0 in
14591459
(outs GPR8:$dst),
14601460
(ins ZREGS:$z),
14611461
"lpm\t$dst, $z",
1462-
[]>,
1462+
[(set GPR8:$dst, (load i16:$z))]>,
14631463
Requires<[HasLPMX]>;
14641464

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

0 commit comments

Comments
 (0)