xref: /aosp_15_r20/external/llvm/test/MC/X86/AlignedBundling/asm-printing-bundle-directives.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker# RUN: llvm-mc -filetype=asm -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker# Just a simple test for the assembly emitter - making sure it emits back the
4*9880d681SAndroid Build Coastguard Worker# bundling directives.
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker  .text
7*9880d681SAndroid Build Coastguard Workerfoo:
8*9880d681SAndroid Build Coastguard Worker  .bundle_align_mode 4
9*9880d681SAndroid Build Coastguard Worker# CHECK:      .bundle_align_mode 4
10*9880d681SAndroid Build Coastguard Worker  pushq   %rbp
11*9880d681SAndroid Build Coastguard Worker  .bundle_lock
12*9880d681SAndroid Build Coastguard Worker# CHECK: .bundle_lock
13*9880d681SAndroid Build Coastguard Worker  cmpl    %r14d, %ebp
14*9880d681SAndroid Build Coastguard Worker  jle     .L_ELSE
15*9880d681SAndroid Build Coastguard Worker  .bundle_unlock
16*9880d681SAndroid Build Coastguard Worker# CHECK: .bundle_unlock
17*9880d681SAndroid Build Coastguard Worker  .bundle_lock align_to_end
18*9880d681SAndroid Build Coastguard Worker# CHECK: .bundle_lock align_to_end
19*9880d681SAndroid Build Coastguard Worker  add     %rbx, %rdx
20*9880d681SAndroid Build Coastguard Worker  .bundle_unlock
21*9880d681SAndroid Build Coastguard Worker
22*9880d681SAndroid Build Coastguard Worker
23