aboutsummaryrefslogtreecommitdiff
path: root/test/MC/X86/AlignedBundling/switch-section-locked-error.s
blob: 10304b53efe4806f0a28cd5680fd4bc1099a1e59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - |& FileCheck %s

# This test invokes .bundle_lock and then switches to a different section
# w/o the appropriate unlock.

# CHECK: ERROR: Unterminated .bundle_lock

  .bundle_align_mode 3
  .section text1, "x"
  imull $17, %ebx, %ebp
  .bundle_lock
  imull $17, %ebx, %ebp

  .section text2, "x"
  imull $17, %ebx, %ebp