1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/MC/X86/align-branch-align.s
Shengchen Kan 61346d1bb4 [NFC][test] Refine tests for branch align
Remove some redundant blank and triple description. And rename some
files.
2020-04-11 13:04:52 +08:00

27 lines
718 B
ArmAsm

# 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 %s
# Exercise some corner cases related to align directive.
.text
# Check the align directive between the macro fused pair
# does not make code crazy.
# CHECK: 0: cmpq %rax, %rbp
# CHECK: 3: nop
# CHECK: 4: jne
cmp %rax, %rbp
.p2align 1
jne bar
.rept 24
int3
.endr
.p2align 1
# Check we can ensure this call not cross or end at boundary when there
# is a align directive before it.
# CHECK: 20: callq *%rax
call *%rax
.type bar,@function
bar:
retq