Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / AVR / inst-brbc.s
blob4d7d684da4468a676ff97de5c1c003ac608f3906
1 ; RUN: llvm-mc -triple avr -show-encoding < %s | FileCheck %s
2 ; RUN: llvm-mc -filetype=obj -triple avr < %s \
3 ; RUN: | llvm-objdump -d - | FileCheck --check-prefix=INST %s
5 foo:
7 brbc 3, .+8
8 brbc 0, .-16
9 .short 0xf759
10 .short 0xf752
11 .short 0xf74c
12 .short 0xf4c7
14 ; CHECK: brvc .Ltmp0+8 ; encoding: [0bAAAAA011,0b111101AA]
15 ; CHECK: ; fixup A - offset: 0, value: .Ltmp0+8, kind: fixup_7_pcrel
16 ; CHECK: brcc .Ltmp1-16 ; encoding: [0bAAAAA000,0b111101AA]
17 ; CHECK: ; fixup A - offset: 0, value: .Ltmp1-16, kind: fixup_7_pcrel
19 ; INST: 23 f4 brvc .+8
20 ; INST: c0 f7 brsh .-16
21 ; INST: 59 f7 brne .-42
22 ; INST: 52 f7 brpl .-44
23 ; INST: 4c f7 brge .-46
24 ; INST: c7 f4 brid .+48