aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-10-11 15:37:46 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-10-11 15:37:46 +0300
commitc0e2bbc66a345f7a76ff01dfb67a216ab5313dfa (patch)
tree3651687510c75dfe5928eb63da9ec4c3000c0faa
parent5f753b9b0d141b43cda2740ec69b61ab7c238f77 (diff)
downloadnasm-c0e2bbc66a345f7a76ff01dfb67a216ab5313dfa.tar.gz
nasm-c0e2bbc66a345f7a76ff01dfb67a216ab5313dfa.tar.xz
nasm-c0e2bbc66a345f7a76ff01dfb67a216ab5313dfa.zip
travis: add movd64
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--travis/test/movd64.asm19
-rw-r--r--travis/test/movd64.bin.t1
-rw-r--r--travis/test/movd64.json21
-rw-r--r--travis/test/movd64.stderr2
4 files changed, 43 insertions, 0 deletions
diff --git a/travis/test/movd64.asm b/travis/test/movd64.asm
new file mode 100644
index 00000000..0bbeee85
--- /dev/null
+++ b/travis/test/movd64.asm
@@ -0,0 +1,19 @@
+ bits 64
+
+ movd r8d, mm1
+ movd r8, mm1
+ movq r8, mm1
+
+ movd [rax], mm1
+ movq [rax], mm1
+ movd dword [rax], mm1
+%ifdef ERROR
+ movq dword [rax], mm1
+%endif
+ movd qword [rax], mm1
+ movq qword [rax], mm1
+
+%ifdef ERROR
+ movd mm2, mm1
+%endif
+ movq mm2, mm1
diff --git a/travis/test/movd64.bin.t b/travis/test/movd64.bin.t
new file mode 100644
index 00000000..93d83713
--- /dev/null
+++ b/travis/test/movd64.bin.t
@@ -0,0 +1 @@
+A~I~I~~~H~o \ No newline at end of file
diff --git a/travis/test/movd64.json b/travis/test/movd64.json
new file mode 100644
index 00000000..e2b6123d
--- /dev/null
+++ b/travis/test/movd64.json
@@ -0,0 +1,21 @@
+[
+ {
+ "description": "Test movd/movq",
+ "id": "movd64",
+ "format": "bin",
+ "source": "movd64.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "movd64.bin" }
+ ]
+ },
+ {
+ "description": "Test movd/movq (error)",
+ "ref": "movd64",
+ "option": "-Ox -DERROR",
+ "target": [
+ { "stderr": "movd64.stderr" }
+ ],
+ "error": "expected"
+ }
+]
diff --git a/travis/test/movd64.stderr b/travis/test/movd64.stderr
new file mode 100644
index 00000000..30d9d2e8
--- /dev/null
+++ b/travis/test/movd64.stderr
@@ -0,0 +1,2 @@
+./travis/test/movd64.asm:11: error: mismatch in operand sizes
+./travis/test/movd64.asm:17: error: invalid combination of opcode and operands