Skip to content

Commit 9fe62d7

Browse files
committed
[AVR] CPIRdK can only work with r16..r31
(avr-rust/rust-legacy-fork#50)
1 parent c7d5217 commit 9fe62d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Target/AVR/AVRInstrInfo.td

+1-1
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ let Defs = [SREG] in
907907
let Uses = [SREG] in
908908
def CPIRdK : FRdK<0b0011,
909909
(outs),
910-
(ins GPR8:$rd, imm_ldi8:$k),
910+
(ins LD8:$rd, imm_ldi8:$k),
911911
"cpi\t$rd, $k",
912912
[(AVRcmp i8:$rd, imm:$k), (implicit SREG)]>;
913913
}

0 commit comments

Comments
 (0)