1 # RUN: llvm-mc -filetype=obj -triple x86_64 --x86-align-branch-boundary=32 --x86-align-branch=call+jmp+indirect+ret+jcc+fused %s | llvm-objdump -d --no-show-raw-insn - | FileCheck %s
3 # This file includes cases which are problematic to apply automatic padding
4 # in the assembler. These are the examples brought up in review and
5 # discussion which motivate the need for a assembler directive to
6 # selectively enable/disable.
7 # FIXME: the checks are checking current *incorrect* behavior
11 # In the first test, we have a label which is expected to be bound to the
12 # start of the call. For instance, we want to associate a fault on the call
13 # target with some bit of higher level sementic.
14 # CHECK-LABEL: <labeled_call_test1>:
15 # CHECK: 1f <label_before>:
18 .globl labeled_call_test1
27 # Our second test is like the first w/a labeled fault, but specifically to
28 # a fused memory comparison. This is the form produced by implicit null
29 # checks for instance.
30 # CHECK-LABEL: <implicit_null_check>:
31 # CHECK: 5f <fault_addr>:
34 .globl implicit_null_check