From: nasm-bot f. C. G. <gor...@gm...> - 2018-11-12 07:01:32
|
Commit-ID: 752c72e204825892c53cfb6af1be465af427c86e Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=752c72e204825892c53cfb6af1be465af427c86e Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Mon, 5 Nov 2018 17:50:37 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sun, 11 Nov 2018 21:43:46 +0300 test: nasm-t -- Add imm64 Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- travis/test/imm64-o0.bin.t | Bin 0 -> 372 bytes travis/test/imm64-o0.stderr | 16 ++++++++++++++++ travis/test/imm64-o1.bin.t | Bin 0 -> 372 bytes travis/test/imm64-o1.stderr | 16 ++++++++++++++++ travis/test/imm64-ox.bin.t | Bin 0 -> 346 bytes travis/test/imm64-ox.stderr | 16 ++++++++++++++++ {test => travis/test}/imm64.asm | 7 +------ travis/test/imm64.json | 31 +++++++++++++++++++++++++++++++ 8 files changed, 80 insertions(+), 6 deletions(-) diff --git a/travis/test/imm64-o0.bin.t b/travis/test/imm64-o0.bin.t new file mode 100644 index 0000000..9a885f6 Binary files /dev/null and b/travis/test/imm64-o0.bin.t differ diff --git a/travis/test/imm64-o0.stderr b/travis/test/imm64-o0.stderr new file mode 100644 index 0000000..4a6921d --- /dev/null +++ b/travis/test/imm64-o0.stderr @@ -0,0 +1,16 @@ +./travis/test/imm64.asm:24: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:24: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:25: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:26: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:27: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:27: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:28: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:28: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:52: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:52: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:53: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:54: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:55: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:55: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:56: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:56: warning: dword data exceeds bounds [-w+number-overflow] \ No newline at end of file diff --git a/travis/test/imm64-o1.bin.t b/travis/test/imm64-o1.bin.t new file mode 100644 index 0000000..9a885f6 Binary files /dev/null and b/travis/test/imm64-o1.bin.t differ diff --git a/travis/test/imm64-o1.stderr b/travis/test/imm64-o1.stderr new file mode 100644 index 0000000..4a6921d --- /dev/null +++ b/travis/test/imm64-o1.stderr @@ -0,0 +1,16 @@ +./travis/test/imm64.asm:24: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:24: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:25: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:26: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:27: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:27: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:28: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:28: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:52: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:52: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:53: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:54: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:55: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:55: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:56: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:56: warning: dword data exceeds bounds [-w+number-overflow] \ No newline at end of file diff --git a/travis/test/imm64-ox.bin.t b/travis/test/imm64-ox.bin.t new file mode 100644 index 0000000..93e1e63 Binary files /dev/null and b/travis/test/imm64-ox.bin.t differ diff --git a/travis/test/imm64-ox.stderr b/travis/test/imm64-ox.stderr new file mode 100644 index 0000000..4a6921d --- /dev/null +++ b/travis/test/imm64-ox.stderr @@ -0,0 +1,16 @@ +./travis/test/imm64.asm:24: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:24: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:25: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:26: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:27: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:27: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:28: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:28: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:52: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:52: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:53: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:54: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:55: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:55: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:56: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/imm64.asm:56: warning: dword data exceeds bounds [-w+number-overflow] \ No newline at end of file diff --git a/test/imm64.asm b/travis/test/imm64.asm similarity index 87% copy from test/imm64.asm copy to travis/test/imm64.asm index a114044..49c418f 100644 --- a/test/imm64.asm +++ b/travis/test/imm64.asm @@ -1,7 +1,3 @@ -;Testname=imm64-O0; Arguments=-O0 -fbin -oimm64.bin; Files=stdout stderr imm64.bin -;Testname=imm64-O1; Arguments=-O1 -fbin -oimm64.bin; Files=stdout stderr imm64.bin -;Testname=imm64-Ox; Arguments=-Ox -fbin -oimm64.bin; Files=stdout stderr imm64.bin - bits 64 mov rax,11223344h mov rax,dword 11223344h @@ -30,7 +26,7 @@ mov [rax],dword 0_11223344_8899aabbh ; 32-bit operation mov qword [rax],0_11223344_8899aabbh mov qword [rax],dword 0_11223344_8899aabbh - + mov rax,strict 11223344h mov rax,strict dword 11223344h mov eax,strict 11223344h @@ -58,4 +54,3 @@ mov [rax],strict dword 0_11223344_8899aabbh ; 32-bit operation mov qword [rax],strict 0_11223344_8899aabbh mov qword [rax],strict dword 0_11223344_8899aabbh - diff --git a/travis/test/imm64.json b/travis/test/imm64.json new file mode 100644 index 0000000..780047e --- /dev/null +++ b/travis/test/imm64.json @@ -0,0 +1,31 @@ +[ + { + "description": "Test imm64 operations (-Ox)", + "id": "imm64", + "format": "bin", + "source": "imm64.asm", + "option": "-Ox", + "target": [ + { "output": "imm64-ox.bin" }, + { "stderr": "imm64-ox.stderr" } + ] + }, + { + "description": "Test imm64 operations (-O1)", + "ref": "imm64", + "option": "-O1", + "target": [ + { "output": "imm64-o1.bin" }, + { "stderr": "imm64-o1.stderr" } + ] + }, + { + "description": "Test imm64 operations (-O0)", + "ref": "imm64", + "option": "-O0", + "target": [ + { "output": "imm64-o0.bin" }, + { "stderr": "imm64-o0.stderr" } + ] + } +] |