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  sbi 3, 5
8  sbi 1, 1
9  sbi 7, 2
10  sbi 0, 0
11  sbi 0, 7
12  sbi 31, 0
13  sbi 31, 7
14
15  sbi main, 0
16
17; CHECK: sbi 3, 5                  ; encoding: [0x1d,0x9a]
18; CHECK: sbi 1, 1                  ; encoding: [0x09,0x9a]
19; CHECK: sbi 7, 2                  ; encoding: [0x3a,0x9a]
20; CHECK: sbi 0, 0                  ; encoding: [0x00,0x9a]
21; CHECK: sbi 0, 7                  ; encoding: [0x07,0x9a]
22; CHECK: sbi 31, 0                 ; encoding: [0xf8,0x9a]
23; CHECK: sbi 31, 7                 ; encoding: [0xff,0x9a]
24
25; CHECK: sbi main, 0               ; encoding: [0bAAAAA000,0x9a]
26; CHECK:                           ;   fixup A - offset: 0, value: main, kind: fixup_port5
27
28; CHECK-INST: sbi 3, 5
29; CHECK-INST: sbi 1, 1
30; CHECK-INST: sbi 7, 2
31; CHECK-INST: sbi 0, 0
32; CHECK-INST: sbi 0, 7
33; CHECK-INST: sbi 31, 0
34; CHECK-INST: sbi 31, 7
35
36; CHECK-INST: sbi 0, 0
37