Ben Shi f319c24570 [AVR] Reject/Reserve R0~R15 on AVRTiny.
Reviewed By: aykevl, dylanmckay

Differential Revision: https://reviews.llvm.org/D121672
2022-03-24 02:33:51 +00:00

17 lines
460 B
ArmAsm

# RUN: not llvm-mc -triple avr -mcpu=avrtiny %s 2>&1 \
# RUN: | FileCheck -check-prefix=AVRTINY %s
# RUN: not llvm-mc -triple avr -mcpu=avr2 %s 2>&1 \
# RUN: | FileCheck -check-prefix=AVR2 %s
# AVRTINY: error: invalid register on avrtiny
mov r0, r16
# AVRTINY: error: invalid register on avrtiny
mov 1, r16
# AVR2: error: invalid operand for instruction
ldi r1, 15
# AVR2: error: instruction requires a CPU feature not currently enabled
lpm r8, Z+