]> oss.titaniummirror.com Git - msp430-binutils.git/blobdiff - gas/testsuite/gas/i386/movbe.s
Imported binutils-2.20
[msp430-binutils.git] / gas / testsuite / gas / i386 / movbe.s
diff --git a/gas/testsuite/gas/i386/movbe.s b/gas/testsuite/gas/i386/movbe.s
new file mode 100644 (file)
index 0000000..40f8bab
--- /dev/null
@@ -0,0 +1,17 @@
+# Check movbe
+       .text
+foo:
+       movbe   (%ecx),%bx
+       movbe   (%ecx),%ebx
+       movbe   %bx,(%ecx)
+       movbe   %ebx,(%ecx)
+       movbew  (%ecx),%bx
+       movbel  (%ecx),%ebx
+       movbew  %bx,(%ecx)
+       movbel  %ebx,(%ecx)
+
+       .intel_syntax noprefix
+       movbe bx, word ptr [ecx]
+       movbe ebx, dword ptr [ecx]
+       movbe word ptr [ecx], bx
+       movbe dword ptr [ecx], ebx