1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/MC/X86/AlignedBundling/section-alignment.s
Derek Schuff 0d51509432 Tighten bundling section alignment test.
Leftover comment from http://reviews.llvm.org/D9131

llvm-svn: 235366
2015-04-21 00:17:59 +00:00

24 lines
606 B
ArmAsm

# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - \
# RUN: | llvm-readobj -sections | FileCheck %s
# Test that bundle-aligned sections with instructions are aligned
.bundle_align_mode 5
# CHECK: Sections
# Check that the empty .text section has the default alignment
# CHECK-LABEL: Name: .text
# CHECK-NOT: Name
# CHECK: AddressAlignment: 4
.section text1, "x"
imull $17, %ebx, %ebp
# CHECK-LABEL: Name: text1
# CHECK-NOT: Name
# CHECK: AddressAlignment: 32
.section text2, "x"
imull $17, %ebx, %ebp
# CHECK-LABEL: Name: text2
# CHECK-NOT: Name
# CHECK: AddressAlignment: 32