brintos

brintos / llvm-project-archived public Read only

0
0
Text · 899 B · 8830ce0 Raw
55 lines · plain
1# RUN: llvm-mc -filetype=obj -triple x86_64 --x86-align-branch-boundary=32 --x86-align-branch=fused+jcc+indirect+call+ret %s | llvm-objdump -d --no-show-raw-insn - | FileCheck %s2 3  # Check if no instruction crosses or is against the boundary,4  # there will be no extra padding.5 6  .text7  .globl  foo8  .p2align  59foo:10  .p2align  511  .rept 2412  int313  .endr14  # CHECK:    18:          js15  js foo16 17  .p2align  518  .rept 2419  int320  .endr21  # CHECK:    38:          jmp22  jmp foo23 24  .p2align  525  .rept 2426  int327  .endr28  # CHECK:    58:          jmpq    *%rcx29  jmp  *%rcx30 31 32  .p2align  533  .rept 2434  int335  .endr36  # CHECK:    78:          callq37  call  foo38 39  .p2align  540  .rept 2741  int342  .endr43  # CHECK:    9b:          retq    $044  ret $045 46 47  .p2align  548  .rept 2149  int350  .endr51  # CHECK:    b5:          cmpq    %rax, %rbp52  # CHECK:    b8:          je53  cmp  %rax, %rbp54  je  foo55