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  clr r2
8  clr r12
9  clr r5
10  clr r0
11
12; CHECK: clr r2                  ; encoding: [0x22,0x24]
13; CHECK: clr r12                 ; encoding: [0xcc,0x24]
14; CHECK: clr r5                  ; encoding: [0x55,0x24]
15; CHECK: clr r0                  ; encoding: [0x00,0x24]
16
17; CHECK-INST: clr r2
18; CHECK-INST: clr r12
19; CHECK-INST: clr r5
20; CHECK-INST: clr r0
21