summaryrefslogtreecommitdiffstats
path: root/llvm/test/MC/X86/AlignedBundling/switch-section-locked-error.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/MC/X86/AlignedBundling/switch-section-locked-error.s')
-rw-r--r--llvm/test/MC/X86/AlignedBundling/switch-section-locked-error.s16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/MC/X86/AlignedBundling/switch-section-locked-error.s b/llvm/test/MC/X86/AlignedBundling/switch-section-locked-error.s
new file mode 100644
index 00000000000..10304b53efe
--- /dev/null
+++ b/llvm/test/MC/X86/AlignedBundling/switch-section-locked-error.s
@@ -0,0 +1,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
+
OpenPOWER on IntegriCloud