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  asr r31
8  asr r25
9  asr r5
10  asr r0
11
12; CHECK: asr r31                ; encoding: [0xf5,0x95]
13; CHECK: asr r25                ; encoding: [0x95,0x95]
14; CHECK: asr r5                 ; encoding: [0x55,0x94]
15; CHECK: asr r0                 ; encoding: [0x05,0x94]
16
17; CHECK-INST: asr r31
18; CHECK-INST: asr r25
19; CHECK-INST: asr r5
20; CHECK-INST: asr r0
21