Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AVR / inst-subi.s
blob148b07bde922c4ac5b9539694fb1921ebd5e9b0a
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:
6 subi r22, 82
7 subi r27, 39
8 subi r31, 244
9 subi r16, 144
11 subi r20, EXTERN_SYMBOL+0
13 ; CHECK: subi r22, 82 ; encoding: [0x62,0x55]
14 ; CHECK: subi r27, 39 ; encoding: [0xb7,0x52]
15 ; CHECK: subi r31, 244 ; encoding: [0xf4,0x5f]
16 ; CHECK: subi r16, 144 ; encoding: [0x00,0x59]
18 ; CHECK: subi r20, EXTERN_SYMBOL+0 ; encoding: [0x40'A',0x50]
19 ; CHECK: ; fixup A - offset: 0, value: EXTERN_SYMBOL+0, kind: fixup_ldi
21 ; CHECK-INST: subi r22, 82
22 ; CHECK-INST: subi r27, 39
23 ; CHECK-INST: subi r31, 244
24 ; CHECK-INST: subi r16, 144
26 ; CHECK-INST: subi r20, 0