[AVR] CPIRdK can only work with r16..r31; Authored by Dr. Gergo Erdi

(https://github.com/avr-rust/rust/issues/50)

llvm-svn: 304283
This commit is contained in:
Dylan McKay 2017-05-31 06:10:59 +00:00
parent e597bd8230
commit 48614d4a2c
1 changed files with 1 additions and 1 deletions

View File

@ -904,7 +904,7 @@ let Defs = [SREG] in
// Compares a register with an 8 bit immediate.
def CPIRdK : FRdK<0b0011,
(outs),
(ins GPR8:$rd, imm_ldi8:$k),
(ins LD8:$rd, imm_ldi8:$k),
"cpi\t$rd, $k",
[(AVRcmp i8:$rd, imm:$k), (implicit SREG)]>;
}