summaryrefslogtreecommitdiff
path: root/test/movd.asm
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2011-06-26 01:53:38 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2011-06-26 01:53:38 +0400
commit767a4e8313185326a00bc771b0086a3bb258c910 (patch)
treec52f928cad7849e0ac12a3118e20a6e6aac0482d /test/movd.asm
parented33be2519ec15770a1ff0ab39b9d485246f3334 (diff)
downloadnasm-767a4e8313185326a00bc771b0086a3bb258c910.tar.gz
test: Add movd.asm
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'test/movd.asm')
-rw-r--r--test/movd.asm12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/movd.asm b/test/movd.asm
new file mode 100644
index 00000000..42df0af9
--- /dev/null
+++ b/test/movd.asm
@@ -0,0 +1,12 @@
+;Testname=optimized; Arguments=-Ox -fbin -omovd.bin; Files=stdout stderr movd.bin
+[BITS 32]
+ movd mm0,eax
+ movd mm0,[eax]
+ movd [eax],mm0
+ movd eax,mm0
+
+ movd xmm0,eax
+ movd xmm0,[eax]
+
+ movd [eax],xmm0
+ movd eax,xmm0