Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AVR / inst-sbi.s
blobe08ea67deb53346144a92549806999dc8e7fbacb
1 ; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
2 ; RUN: llvm-mc -filetype=obj -triple avr < %s | llvm-objdump --no-print-imm-hex -d - | FileCheck -check-prefix=CHECK-INST %s
5 foo:
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
15 sbi main, 0
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]
25 ; CHECK: sbi main, 0 ; encoding: [0bAAAAA000,0x9a]
26 ; CHECK: ; fixup A - offset: 0, value: main, kind: fixup_port5
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
36 ; CHECK-INST: sbi 0, 0