llvm-for-llvmta/test/MC/X86/align-branch-relax-all.s

44 lines
1023 B
ArmAsm
Raw Normal View History

2022-04-25 10:02:23 +02:00
# 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
# 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
# Check instructions can be aligned correctly along with option --mc-relax-all
.text
.global foo
foo:
.p2align 5
.rept 25
int3
.endr
# CHECK: 19: jne
# CHECK: 1f: int3
jne foo
int3
.p2align 5
.rept 27
int3
.endr
# CHECK: 40: jne
jne foo
.p2align 5
.rept 22
int3
.endr
# CHECK: 76: testb $2, %dl
# CHECK: 79: jne
# CHECK: 7f: int3
testb $2, %dl
jne foo
int3
.p2align 5
.rept 27
int3
.endr
# CHECK: a0: testb $2, %dl
# CHECK: a3: jne
testb $2, %dl
jne foo