xref: /llvm-project/llvm/test/MC/AVR/error.s (revision f319c24570f93c8a5a4401768b3ecfba9ef2fdba)
1# RUN: not llvm-mc -triple avr -mcpu=avrtiny %s 2>&1 \
2# RUN:     | FileCheck -check-prefix=AVRTINY %s
3# RUN: not llvm-mc -triple avr -mcpu=avr2 %s 2>&1 \
4# RUN:     | FileCheck -check-prefix=AVR2 %s
5
6# AVRTINY: error: invalid register on avrtiny
7mov r0, r16
8
9# AVRTINY: error: invalid register on avrtiny
10mov 1, r16
11
12# AVR2: error: invalid operand for instruction
13ldi r1, 15
14
15# AVR2: error: instruction requires a CPU feature not currently enabled
16lpm r8, Z+
17