[nasm:nasm-2.15.xx-travis] travis: add lwp

nasm-bot for Cyrill Gorcunov gorcunov at gmail.com
Tue Aug 25 09:57:08 PDT 2020


Commit-ID:  2cc71a59b1e627e99ede6076746fde84cc5c7b39
Gitweb:     http://repo.or.cz/w/nasm.git?a=commitdiff;h=2cc71a59b1e627e99ede6076746fde84cc5c7b39
Author:     Cyrill Gorcunov <gorcunov at gmail.com>
AuthorDate: Tue, 25 Aug 2020 19:42:29 +0300
Committer:  Cyrill Gorcunov <gorcunov at gmail.com>
CommitDate: Tue, 25 Aug 2020 19:42:29 +0300

travis: add lwp

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


---
 {test => travis/test}/lwp.asm |  12 ++++++------
 travis/test/lwp.bin.t         | Bin 0 -> 1810 bytes
 travis/test/lwp.json          |  12 ++++++++++++
 3 files changed, 18 insertions(+), 6 deletions(-)

diff --git a/test/lwp.asm b/travis/test/lwp.asm
similarity index 99%
copy from test/lwp.asm
copy to travis/test/lwp.asm
index f097b63b..4b2bdc9b 100644
--- a/test/lwp.asm
+++ b/travis/test/lwp.asm
@@ -6,8 +6,12 @@
 %define testcase3(x,y,z) z,y,x
 
 %macro testcase 3.nolist	; uncomment one of the two, and compare the -f bin and -l output between them
-;    db %1
-;    %2 testcase3(%3)
+%ifdef BIN
+    db %1
+%endif
+%ifdef SRC
+    %2 testcase3(%3)
+%endif
 %endmacro
 
 bits 32
@@ -207,7 +211,3 @@ testcase { 0x67, 0x8f, 0xea, 0x18, 0x12, 0x8b, 0xfe, 0xca, 0x00, 0x00, 0x78, 0x5
 testcase { 0x67, 0x8f, 0xea, 0x10, 0x12, 0x8a, 0xfe, 0xca, 0x00, 0x00, 0x78, 0x56, 0x34, 0x12		  }, { lwpval }, { 0x12345678,[0xcafe+edx],r13d }
 testcase { 0x67, 0x8f, 0xea, 0x08, 0x12, 0x89, 0xfe, 0xca, 0x00, 0x00, 0x78, 0x56, 0x34, 0x12		  }, { lwpval }, { 0x12345678,[0xcafe+ecx],r14d }
 testcase { 0x67, 0x8f, 0xea, 0x00, 0x12, 0x88, 0xfe, 0xca, 0x00, 0x00, 0x78, 0x56, 0x34, 0x12		  }, { lwpval }, { 0x12345678,[0xcafe+eax],r15d }
-
-; EOF
-
- 	  	 
diff --git a/travis/test/lwp.bin.t b/travis/test/lwp.bin.t
new file mode 100644
index 00000000..13110779
Binary files /dev/null and b/travis/test/lwp.bin.t differ
diff --git a/travis/test/lwp.json b/travis/test/lwp.json
new file mode 100644
index 00000000..8a0dd562
--- /dev/null
+++ b/travis/test/lwp.json
@@ -0,0 +1,12 @@
+[
+	{
+		"description": "Test LWP instructions",
+		"id": "lwp",
+		"format": "bin",
+		"source": "lwp.asm",
+		"option": "-Ox -DSRC",
+		"target": [
+			{ "output": "lwp.bin" }
+		]
+	}
+]


More information about the Nasm-commits mailing list