Commit-ID: 7642fefb14d33c3597870017d2870aa6e1a846bc
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=7642fefb14d33c3597870017d2870aa6e1a846bc
Author: Cyrill Gorcunov <gor...@gm...>
AuthorDate: Sat, 3 Nov 2018 18:26:26 +0300
Committer: Cyrill Gorcunov <gor...@gm...>
CommitDate: Sun, 11 Nov 2018 21:43:45 +0300
test: nasm-t -- Add xchg test
Signed-off-by: Cyrill Gorcunov <gor...@gm...>
---
{test => travis/test}/xchg.asm | 9 +++------
travis/test/xchg.bin.t | 1 +
travis/test/xchg.json | 18 ++++++++++++++++++
3 files changed, 22 insertions(+), 6 deletions(-)
diff --git a/test/xchg.asm b/travis/test/xchg.asm
similarity index 83%
copy from test/xchg.asm
copy to travis/test/xchg.asm
index 9c826dd..1b6c843 100644
--- a/test/xchg.asm
+++ b/travis/test/xchg.asm
@@ -1,13 +1,10 @@
-;Testname=unoptimized; Arguments=-fbin -oxchg.bin -O0; Files=stdout stderr xchg.bin
-;Testname=optimized; Arguments=-fbin -oxchg.bin -Ox; Files=stdout stderr xchg.bin
-
%macro x 2
xchg %1,%2
xchg %2,%1
%endmacro
bits 16
-
+
x ax,ax
x ax,cx
x ax,dx
@@ -26,7 +23,7 @@
x eax,edi
bits 32
-
+
x ax,ax
x ax,cx
x ax,dx
@@ -45,7 +42,7 @@
x eax,edi
bits 64
-
+
x ax,ax
x ax,cx
x ax,dx
diff --git a/travis/test/xchg.bin.t b/travis/test/xchg.bin.t
new file mode 100644
index 0000000..1c3908c
--- /dev/null
+++ b/travis/test/xchg.bin.t
@@ -0,0 +1 @@
+fffffffffffffffffffffffffffffffffffffffffffffffffAfAfAfAfAfAfAfAfAfAfAfAfAfAfAfAAAAAAAAAAAAAAAAAHHHHHHHHHHHHHHHHIIIIIIIIIIIIIIII
\ No newline at end of file
diff --git a/travis/test/xchg.json b/travis/test/xchg.json
new file mode 100644
index 0000000..5bf822c
--- /dev/null
+++ b/travis/test/xchg.json
@@ -0,0 +1,18 @@
+[
+ {
+ "description": "Check xchg instruction (-Ox)",
+ "id": "xchg",
+ "format": "bin",
+ "source": "xchg.asm",
+ "option": "-Ox",
+ "target": [
+ { "output": "xchg.bin" }
+ ]
+ },
+ {
+ "description": "Check xchg instruction (-O0)",
+ "ref": "xchg",
+ "option": "-O0",
+ "update": false
+ }
+]
|