]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - gas/testsuite/gas/i386/x86-64-inval-movbe.s
Imported binutils-2.20
[msp430-binutils.git] / gas / testsuite / gas / i386 / x86-64-inval-movbe.s
diff --git a/gas/testsuite/gas/i386/x86-64-inval-movbe.s b/gas/testsuite/gas/i386/x86-64-inval-movbe.s
new file mode 100644 (file)
index 0000000..38f09b1
--- /dev/null
@@ -0,0 +1,15 @@
+# Check illegal movbe in 64bit mode.
+       .text
+foo:
+       movbe   (%rcx),%bl
+       movbe   %ecx,%ebx
+       movbe   %bx,%rcx
+       movbe   %rbx,%rcx
+       movbe   %bl,(%rcx)
+
+       .intel_syntax noprefix
+       movbe bl, byte ptr [rcx]
+       movbe ebx, ecx
+       movbe rcx, bx
+       movbe rcx, rbx
+       movbe byte ptr [rcx], bl