summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/i386/x86-64-mpx-inval-1.s
diff options
context:
space:
mode:
Diffstat (limited to 'gas/testsuite/gas/i386/x86-64-mpx-inval-1.s')
-rw-r--r--gas/testsuite/gas/i386/x86-64-mpx-inval-1.s13
1 files changed, 13 insertions, 0 deletions
diff --git a/gas/testsuite/gas/i386/x86-64-mpx-inval-1.s b/gas/testsuite/gas/i386/x86-64-mpx-inval-1.s
new file mode 100644
index 0000000000..afa04fc8f9
--- /dev/null
+++ b/gas/testsuite/gas/i386/x86-64-mpx-inval-1.s
@@ -0,0 +1,13 @@
+# MPX instructions
+ .allow_index_reg
+ .text
+ bnd add %rax, %rbx # Bad
+ bnd stosw (%edi) # Bad
+ bnd loop foo
+ bnd jrcxz foo
+
+.intel_syntax noprefix
+ bnd add rbx, rax # Bad
+ bnd stos WORD PTR [edi] # Bad
+ bnd loop foo
+ bnd jrcxz foo