aboutsummaryrefslogtreecommitdiffstats
path: root/travis/test
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2018-11-04 19:27:16 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2018-11-11 21:43:45 +0300
commit9578690f5b4f1afa6ba7fff4402be6e4995c9b8f (patch)
treea44aead3f601b983a8f3bb9ea34640f36a4ccc76 /travis/test
parent7d7a159633b8ea327a15ec972230c57ed09b0389 (diff)
downloadnasm-9578690f5b4f1afa6ba7fff4402be6e4995c9b8f.tar.gz
nasm-9578690f5b4f1afa6ba7fff4402be6e4995c9b8f.tar.xz
nasm-9578690f5b4f1afa6ba7fff4402be6e4995c9b8f.zip
test: nasm-t -- Add mmxsize test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'travis/test')
-rw-r--r--travis/test/mmxsize.asm36
-rw-r--r--travis/test/mmxsize.bin.tbin0 -> 161 bytes
-rw-r--r--travis/test/mmxsize.json17
3 files changed, 53 insertions, 0 deletions
diff --git a/travis/test/mmxsize.asm b/travis/test/mmxsize.asm
new file mode 100644
index 00000000..791f0087
--- /dev/null
+++ b/travis/test/mmxsize.asm
@@ -0,0 +1,36 @@
+ bits 32
+ movd mm0,eax
+ movd mm0,[foo]
+ movq mm0,[foo]
+ movd mm0,dword [foo]
+ movq mm0,qword [foo]
+ movmskps eax,xmm1
+ movmskpd eax,xmm1
+ nop
+ movd xmm0,eax
+ movd xmm0,[foo]
+ movq xmm0,[foo]
+ movd xmm0,dword [foo]
+ movq xmm0,qword [foo]
+ nop
+
+ bits 64
+ movd mm0,eax
+ movq mm0,[foo]
+ movd mm0,dword [foo]
+ movq mm0,qword [foo]
+ movq mm0,rax
+ movmskps eax,xmm1
+ movmskpd eax,xmm1
+ nop
+ movd xmm0,eax
+ movq xmm0,[foo]
+ movd xmm0,dword [foo]
+ movq xmm0,qword [foo]
+ movq xmm0,rax
+ movmskps rax,xmm1
+ movmskpd rax,xmm1
+ nop
+
+ section .bss
+foo resq 1
diff --git a/travis/test/mmxsize.bin.t b/travis/test/mmxsize.bin.t
new file mode 100644
index 00000000..00270fa5
--- /dev/null
+++ b/travis/test/mmxsize.bin.t
Binary files differ
diff --git a/travis/test/mmxsize.json b/travis/test/mmxsize.json
new file mode 100644
index 00000000..77065d85
--- /dev/null
+++ b/travis/test/mmxsize.json
@@ -0,0 +1,17 @@
+[
+ {
+ "description": "Test mmx instructions (-Ox)",
+ "id": "mmxsize",
+ "format": "bin",
+ "source": "mmxsize.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "mmxsize.bin" }
+ ]
+ },
+ {
+ "description": "Test mmx instructions (-O0)",
+ "ref": "mmxsize",
+ "option": "-O0"
+ }
+]