From: nasm-bot f. C. G. <gor...@gm...> - 2018-11-12 07:00:44
|
Commit-ID: fe6f73878aba8aca052b385208b55263e5bfe981 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=fe6f73878aba8aca052b385208b55263e5bfe981 Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sun, 4 Nov 2018 18:29:24 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sun, 11 Nov 2018 21:43:45 +0300 test: nasm-t -- Add floatb test Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- {test => travis/test}/floatb.asm | 9 +++------ travis/test/floatb.bin.t | Bin 0 -> 112 bytes travis/test/floatb.json | 12 ++++++++++++ 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/test/floatb.asm b/travis/test/floatb.asm similarity index 73% copy from test/floatb.asm copy to travis/test/floatb.asm index dc0422e..cbf9681 100644 --- a/test/floatb.asm +++ b/travis/test/floatb.asm @@ -1,14 +1,11 @@ -;Testname=unoptimized; Arguments=-O0 -fbin -ofloatb.bin; Files=stdout stderr floatb.bin -;Testname=optimized; Arguments=-Ox -fbin -ofloatb.bin; Files=stdout stderr floatb.bin - ;; Known problematic floating-point numbers and their proper ;; encoding... bits 64 - + dd 1.1e10 dd 0x5023e9ac ; Should be... - + dd 50.40e9 dd 0x513bc130 ; Should be... @@ -21,7 +18,7 @@ dt 1.2e28 dq 0x9b18ab5df7180b6c dw 0x405c - + dt 50.46e25 dq 0xd0b29a67e95dcb60 dw 0x4057 diff --git a/travis/test/floatb.bin.t b/travis/test/floatb.bin.t new file mode 100644 index 0000000..3fc9be2 Binary files /dev/null and b/travis/test/floatb.bin.t differ diff --git a/travis/test/floatb.json b/travis/test/floatb.json new file mode 100644 index 0000000..18ba8b6 --- /dev/null +++ b/travis/test/floatb.json @@ -0,0 +1,12 @@ +[ + { + "description": "Test of known floating-point bugs", + "id": "floatb", + "format": "bin", + "source": "floatb.asm", + "option": "-Ox", + "target": [ + { "output": "floatb.bin" } + ] + } +] |