From: nasm-bot f. C. G. <gor...@gm...> - 2018-11-12 07:01:33
|
Commit-ID: bfe17213e00a8397cf2e94b79ab30d98826c492e Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=bfe17213e00a8397cf2e94b79ab30d98826c492e Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sat, 10 Nov 2018 23:07:59 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sun, 11 Nov 2018 21:43:46 +0300 test: nasm-t -- Add immwarn Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- travis/test/immwarn-no.bin.t | Bin 0 -> 188 bytes travis/test/immwarn-o.bin.t | Bin 0 -> 161 bytes travis/test/immwarn-o.stderr | 10 ++++++++++ travis/test/immwarn-ono.bin.t | Bin 0 -> 132 bytes {test => travis/test}/immwarn.asm | 0 travis/test/immwarn.bin.t | Bin 0 -> 222 bytes travis/test/immwarn.json | 38 ++++++++++++++++++++++++++++++++++++++ travis/test/immwarn.stderr | 11 +++++++++++ 8 files changed, 59 insertions(+) diff --git a/travis/test/immwarn-no.bin.t b/travis/test/immwarn-no.bin.t new file mode 100644 index 0000000..3896674 Binary files /dev/null and b/travis/test/immwarn-no.bin.t differ diff --git a/travis/test/immwarn-o.bin.t b/travis/test/immwarn-o.bin.t new file mode 100644 index 0000000..39723cd Binary files /dev/null and b/travis/test/immwarn-o.bin.t differ diff --git a/travis/test/immwarn-o.stderr b/travis/test/immwarn-o.stderr new file mode 100644 index 0000000..6629136 --- /dev/null +++ b/travis/test/immwarn-o.stderr @@ -0,0 +1,10 @@ +./travis/test/immwarn.asm:13: warning: word value exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:21: warning: word value exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:26: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:32: warning: word value exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:37: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:49: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:75: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:75: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:79: warning: signed dword value exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:89: warning: signed byte value exceeds bounds [-w+number-overflow] \ No newline at end of file diff --git a/travis/test/immwarn-ono.bin.t b/travis/test/immwarn-ono.bin.t new file mode 100644 index 0000000..a1dd76a Binary files /dev/null and b/travis/test/immwarn-ono.bin.t differ diff --git a/test/immwarn.asm b/travis/test/immwarn.asm similarity index 100% copy from test/immwarn.asm copy to travis/test/immwarn.asm diff --git a/travis/test/immwarn.bin.t b/travis/test/immwarn.bin.t new file mode 100644 index 0000000..71d1dc3 Binary files /dev/null and b/travis/test/immwarn.bin.t differ diff --git a/travis/test/immwarn.json b/travis/test/immwarn.json new file mode 100644 index 0000000..9a82031 --- /dev/null +++ b/travis/test/immwarn.json @@ -0,0 +1,38 @@ +[ + { + "description": "Test warns on immediate operands (-O0, warn)", + "id": "immwarn", + "format": "bin", + "source": "immwarn.asm", + "option": "-O0 -DOPT=1 -DWARN=1", + "target": [ + { "output": "immwarn.bin" }, + { "stderr": "immwarn.stderr" } + ] + }, + { + "description": "Test warns on immediate operands (-O0, nowarn)", + "ref": "immwarn", + "option": "-O0 -DOPT=1 -DWARN=0", + "target": [ + { "output": "immwarn-no.bin" } + ] + }, + { + "description": "Test warns on immediate operands (-Ox, warn)", + "ref": "immwarn", + "option": "-Ox -DOPT=1 -DWARN=1", + "target": [ + { "output": "immwarn-o.bin" }, + { "stderr": "immwarn-o.stderr" } + ] + }, + { + "description": "Test warns on immediate operands (-Ox, nowarn)", + "ref": "immwarn", + "option": "-Ox -DOPT=1 -DWARN=0", + "target": [ + { "output": "immwarn-ono.bin" } + ] + } +] diff --git a/travis/test/immwarn.stderr b/travis/test/immwarn.stderr new file mode 100644 index 0000000..95f3448 --- /dev/null +++ b/travis/test/immwarn.stderr @@ -0,0 +1,11 @@ +./travis/test/immwarn.asm:13: warning: word data exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:21: warning: word data exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:26: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:32: warning: word data exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:37: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:49: warning: signed byte value exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:75: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:75: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:79: warning: signed dword immediate exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:79: warning: dword data exceeds bounds [-w+number-overflow] +./travis/test/immwarn.asm:89: warning: signed byte value exceeds bounds [-w+number-overflow] \ No newline at end of file |