[nasm:master] travis: add movd64

nasm-bot for Cyrill Gorcunov gorcunov at gmail.com
Sun Oct 11 06:00:05 PDT 2020


Commit-ID:  c0e2bbc66a345f7a76ff01dfb67a216ab5313dfa
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=c0e2bbc66a345f7a76ff01dfb67a216ab5313dfa
Author:     Cyrill Gorcunov <gorcunov at gmail.com>
AuthorDate: Sun, 11 Oct 2020 15:37:46 +0300
Committer:  Cyrill Gorcunov <gorcunov at gmail.com>
CommitDate: Sun, 11 Oct 2020 15:37:46 +0300

travis: add movd64

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>


---
 {test => travis/test}/movd64.asm | 10 +++++++---
 travis/test/movd64.bin.t         |  1 +
 travis/test/movd64.json          | 21 +++++++++++++++++++++
 travis/test/movd64.stderr        |  2 ++
 4 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/test/movd64.asm b/travis/test/movd64.asm
similarity index 68%
copy from test/movd64.asm
copy to travis/test/movd64.asm
index b328c349..0bbeee85 100644
--- a/test/movd64.asm
+++ b/travis/test/movd64.asm
@@ -7,9 +7,13 @@
 	movd [rax], mm1
 	movq [rax], mm1
 	movd dword [rax], mm1
-;	movq dword [rax], mm1
+%ifdef ERROR
+	movq dword [rax], mm1
+%endif
 	movd qword [rax], mm1
 	movq qword [rax], mm1
-	
-;	movd mm2, 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


More information about the Nasm-commits mailing list