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