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  bst r3, 5
8  bst r1, 1
9  bst r0, 0
10  bst r7, 2
11
12; CHECK: bst r3, 5                  ; encoding: [0x35,0xfa]
13; CHECK: bst r1, 1                  ; encoding: [0x11,0xfa]
14; CHECK: bst r0, 0                  ; encoding: [0x00,0xfa]
15; CHECK: bst r7, 2                  ; encoding: [0x72,0xfa]
16
17; CHECK-INST: bst r3, 5
18; CHECK-INST: bst r1, 1
19; CHECK-INST: bst r0, 0
20; CHECK-INST: bst r7, 2
21