llvm-project/llvm/test/MC/X86/align-branch-section-size.s

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
500 B
ArmAsm
Raw Normal View History

# RUN: llvm-mc -filetype=obj -triple x86_64 --x86-align-branch-boundary=32 --x86-align-branch=ret %s | llvm-readobj -S | FileCheck %s
# Check the aligment of section that contains instructions to be aligned
# is correctly set.
# CHECK: Name: text1
# CHECK: AddressAlignment: 32
.section text1, "ax"
foo:
ret
# CHECK: Name: text2
# CHECK: AddressAlignment: 1
.section text2, "ax"
nop
# CHECK: Name: text3
# CHECK: AddressAlignment: 1
.section text3, "ax"
jmp foo