Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / X86 / align-branch-section-size.s
blob06c92373b17946e303951112a1d8aa88689859e7
1 # RUN: llvm-mc -filetype=obj -triple x86_64 --x86-align-branch-boundary=32 --x86-align-branch=ret %s | llvm-readobj -S - | FileCheck %s
3 # Check the aligment of section that contains instructions to be aligned
4 # is correctly set.
6 # CHECK: Name: text1
7 # CHECK: AddressAlignment: 32
8 .section text1, "ax"
9 foo:
10 ret
12 # CHECK: Name: text2
13 # CHECK: AddressAlignment: 1
14 .section text2, "ax"
15 nop
17 # CHECK: Name: text3
18 # CHECK: AddressAlignment: 1
19 .section text3, "ax"
20 jmp foo