1 # RUN: llvm-mc -filetype=obj -triple x86_64 --x86-align-branch-boundary=32 --x86-align-branch=jcc+jmp+indirect+call+ret %s | llvm-objdump -d --no-show-raw-insn - | FileCheck %s
3 # Exercise cases where mixed kinds of branch are asked to be aligned.
6 .globl labeled_mixed_test1
12 # This call should have started at 0x1e and ends at 0x23, so two bytes of
13 # padding are inserted before it.
19 # If the previous call was not aligned, this jmp should have started at 0x3f
20 # and need two bytes of padding. After the two bytes of padding are inserted
21 # for the call, this jmp starts at 0xa1 and does not need padding.
25 .globl labeled_mixed_test2
31 # This jne should have started at 0x7e, so two bytes of padding are inserted
38 # If the previous jne was not aligned, this jmp should have started at 0x3c.
39 # After the two bytes of padding are inserted for the jne, this jmp should
40 # have started at 0x9e, so two bytes of padding are inserted and it starts at
45 .globl labeled_mixed_test3