| 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-NOT: Name |
| 17 |
# CHECK: AddressAlignment: 32 |
| 18 |
|
| 19 |
.section text2, "x" |
| 20 |
imull $17, %ebx, %ebp |
| 21 |
# CHECK-LABEL: Name: text2 |
| 22 |
# CHECK-NOT: Name |
| 23 |
# CHECK: AddressAlignment: 32 |