summaryrefslogtreecommitdiff
path: root/test/MC/X86/AlignedBundling/unlock-without-lock-error.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/X86/AlignedBundling/unlock-without-lock-error.s')
-rw-r--r--test/MC/X86/AlignedBundling/unlock-without-lock-error.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/X86/AlignedBundling/unlock-without-lock-error.s b/test/MC/X86/AlignedBundling/unlock-without-lock-error.s
new file mode 100644
index 0000000000000..699511d4e6b68
--- /dev/null
+++ b/test/MC/X86/AlignedBundling/unlock-without-lock-error.s
@@ -0,0 +1,11 @@
+# RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o - 2>&1 | FileCheck %s
+
+# .bundle_unlock can't come without a .bundle_lock before it
+
+# CHECK: ERROR: .bundle_unlock without matching lock
+
+ .bundle_align_mode 3
+ imull $17, %ebx, %ebp
+ .bundle_unlock
+
+