• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc -filetype=obj -triple x86_64 --x86-align-branch-boundary=32 --x86-align-branch=fused+jcc --mc-relax-all %s | llvm-objdump -d --no-show-raw-insn - | FileCheck %s
2# RUN: llvm-mc -filetype=obj -triple x86_64 --x86-align-branch-boundary=32 --x86-align-branch=fused+jcc --x86-pad-max-prefix-size=5 --mc-relax-all %s | llvm-objdump -d --no-show-raw-insn - | FileCheck %s
3
4  # Check instructions can be aligned correctly along with option --mc-relax-all
5
6  .text
7  .global foo
8foo:
9  .p2align  5
10  .rept 25
11  int3
12  .endr
13  # CHECK:    19:          jne
14  # CHECK:    1f:          int3
15  jne   foo
16  int3
17
18  .p2align  5
19  .rept 27
20  int3
21  .endr
22  # CHECK:    40:          jne
23  jne   foo
24
25  .p2align  5
26  .rept 22
27  int3
28  .endr
29  # CHECK:    76:          testb    $2, %dl
30  # CHECK:    79:          jne
31  # CHECK:    7f:          int3
32  testb $2, %dl
33  jne   foo
34  int3
35
36  .p2align  5
37  .rept 27
38  int3
39  .endr
40  # CHECK:    a0:          testb    $2, %dl
41  # CHECK:    a3:          jne
42  testb $2, %dl
43  jne   foo
44