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  cpse r2, r13
8  cpse r9, r0
9  cpse r5, r31
10  cpse r3, r3
11
12; CHECK: cpse r2, r13                  ; encoding: [0x2d,0x10]
13; CHECK: cpse r9, r0                   ; encoding: [0x90,0x10]
14; CHECK: cpse r5, r31                  ; encoding: [0x5f,0x12]
15; CHECK: cpse r3, r3                   ; encoding: [0x33,0x10]
16
17; CHECK-INST: cpse r2, r13
18; CHECK-INST: cpse r9, r0
19; CHECK-INST: cpse r5, r31
20; CHECK-INST: cpse r3, r3
21