Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / ELF / subsection-if.s
blob7f2cba6f52100ec710b532cbcc84532ccdd6bb3d
1 # RUN: llvm-mc -filetype=obj -triple=x86_64 %s -o %t
2 # RUN: llvm-readelf -x .text %t | FileCheck %s
3 # RUN: not llvm-mc -filetype=obj -triple=x86_64 --defsym ERR=1 %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR
5 # CHECK: 0x00000000 9090
7 .subsection 1
8 661:
9 nop
10 662:
11 .previous
12 ## 661 and 662 are in the same fragment being laied out.
13 .org . - (662b-661b) + (662b-661b)
14 nop
16 .ifdef ERR
17 .subsection 1
18 661:
19 .p2align 2
20 nop
21 662:
22 .previous
23 # ERR: :[[#@LINE+1]]:8: error: expected assembly-time absolute expression
24 .org . - (662b-661b) + (662b-661b)
25 nop
26 .endif