27 lines · plain
1# RUN: llvm-mc -filetype=obj -triple x86_64 --x86-align-branch-boundary=32 --x86-align-branch=fused+jcc+call %s | llvm-objdump -d --no-show-raw-insn - | FileCheck %s2 3 # Exercise some corner cases related to align directive.4 5 .text6 # Check the align directive between the macro fused pair7 # does not make code crazy.8 # CHECK: 0: cmpq %rax, %rbp9 # CHECK: 3: nop10 # CHECK: 4: jne11 cmp %rax, %rbp12 .p2align 113 jne bar14 15 .rept 2416 int317 .endr18 .p2align 119 # Check we can ensure this call not cross or end at boundary when there20 # is a align directive before it.21 # CHECK: 20: callq *%rax22 call *%rax23 24 .type bar,@function25bar:26 retq27