summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDylan McKay <me@dylanmckay.io>2017-05-31 06:10:59 +0000
committerDylan McKay <me@dylanmckay.io>2017-05-31 06:10:59 +0000
commit48614d4a2c5401bc24a16739b51f02ba3b395c4b (patch)
tree2cdf6a3ec6f973115dcfed5097543def00941614 /llvm
parente597bd8230bb2ab8668e97e44a47c8311df63e04 (diff)
downloadbcm5719-llvm-48614d4a2c5401bc24a16739b51f02ba3b395c4b.tar.gz
bcm5719-llvm-48614d4a2c5401bc24a16739b51f02ba3b395c4b.zip
[AVR] CPIRdK can only work with r16..r31; Authored by Dr. Gergo Erdi
(https://github.com/avr-rust/rust/issues/50) llvm-svn: 304283
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/AVR/AVRInstrInfo.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AVR/AVRInstrInfo.td b/llvm/lib/Target/AVR/AVRInstrInfo.td
index f10ca394f36..5dd8b2c27b2 100644
--- a/llvm/lib/Target/AVR/AVRInstrInfo.td
+++ b/llvm/lib/Target/AVR/AVRInstrInfo.td
@@ -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)]>;
}
OpenPOWER on IntegriCloud