1; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
2; RUN: llvm-mc -filetype=obj -triple avr < %s | llvm-objdump -d - | FileCheck -check-prefix=CHECK-INST %s
3
4
5foo:
6
7  inc r12
8  inc r29
9  inc r6
10  inc r20
11  inc r0
12  inc r31
13
14; CHECK: inc r12                  ; encoding: [0xc3,0x94]
15; CHECK: inc r29                  ; encoding: [0xd3,0x95]
16; CHECK: inc r6                   ; encoding: [0x63,0x94]
17; CHECK: inc r20                  ; encoding: [0x43,0x95]
18; CHECK: inc r0                   ; encoding: [0x03,0x94]
19; CHECK: inc r31                  ; encoding: [0xf3,0x95]
20
21; CHECK-INST: inc r12
22; CHECK-INST: inc r29
23; CHECK-INST: inc r6
24; CHECK-INST: inc r20
25; CHECK-INST: inc r0
26; CHECK-INST: inc r31
27