[MC] When using bundle aligment, align sections to bundle size
[oota-llvm.git] / test / MC / X86 / AlignedBundling / section-alignment.s
1 # RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - \
2 # RUN:   | llvm-readobj -sections | FileCheck %s
3
4 # Test that bundle-aligned sections with instructions are aligned
5
6   .bundle_align_mode 5
7 # CHECK: Sections
8 # Check that the empty .text section has the default alignment
9 # CHECK-LABEL: Name: .text
10 # CHECK-NOT: Name
11 # CHECK: AddressAlignment: 4
12
13   .section text1, "x"
14   imull $17, %ebx, %ebp
15 # CHECK-LABEL: Name: text1
16 # CHECK: AddressAlignment: 32
17
18   .section text2, "x"
19   imull $17, %ebx, %ebp
20 # CHECK-LABEL: Name: text2
21 # CHECK: AddressAlignment: 32