From: nasm-bot f. C. G. <gor...@gm...> - 2018-11-12 07:01:03
|
Commit-ID: ba5a39a5c33db1b637ee0f6934c860f09eea18fe Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=ba5a39a5c33db1b637ee0f6934c860f09eea18fe Author: Cyrill Gorcunov <gor...@gm...> AuthorDate: Sun, 4 Nov 2018 18:34:47 +0300 Committer: Cyrill Gorcunov <gor...@gm...> CommitDate: Sun, 11 Nov 2018 21:43:45 +0300 test: nasm-t -- Add floatexp test Signed-off-by: Cyrill Gorcunov <gor...@gm...> --- travis/test/floatexp-o0.bin.t | Bin 0 -> 2523 bytes travis/test/floatexp-ox.bin.t | Bin 0 -> 2268 bytes {test => travis/test}/floatexp.asm | 7 ++----- travis/test/floatexp.json | 20 ++++++++++++++++++++ 4 files changed, 22 insertions(+), 5 deletions(-) diff --git a/travis/test/floatexp-o0.bin.t b/travis/test/floatexp-o0.bin.t new file mode 100644 index 0000000..e8e37a4 Binary files /dev/null and b/travis/test/floatexp-o0.bin.t differ diff --git a/travis/test/floatexp-ox.bin.t b/travis/test/floatexp-ox.bin.t new file mode 100644 index 0000000..32d1b9f Binary files /dev/null and b/travis/test/floatexp-ox.bin.t differ diff --git a/test/floatexp.asm b/travis/test/floatexp.asm similarity index 98% copy from test/floatexp.asm copy to travis/test/floatexp.asm index 2bc359e..3e4a558 100644 --- a/test/floatexp.asm +++ b/travis/test/floatexp.asm @@ -1,6 +1,3 @@ -;Testname=unoptimized; Arguments=-O0 -fbin -ofloatexp.bin; Files=stdout stderr floatexp.bin -;Testname=optimized; Arguments=-Ox -fbin -ofloatexp.bin; Files=stdout stderr floatexp.bin - bits 64 ; ; Test of floating-point formats @@ -213,7 +210,7 @@ ; ; Test hexadecimal floating-point numbers ; - + ; 16-bit mov ax,__float16__(1.0) mov ax,__float16__(0x1.0) @@ -284,7 +281,7 @@ mov rax,__float64__(0x0000123456789.0) mov rax,__float64__(0x123456789.0p+0) mov rax,__float64__(0x123456789.0p+300) - + ; 80-bit mov rax,__float80m__(1.0) mov ax,__float80e__(1.0) diff --git a/travis/test/floatexp.json b/travis/test/floatexp.json new file mode 100644 index 0000000..201fb4b --- /dev/null +++ b/travis/test/floatexp.json @@ -0,0 +1,20 @@ +[ + { + "description": "Test of floating-point formats (-Ox)", + "id": "floatexp", + "format": "bin", + "source": "floatexp.asm", + "option": "-Ox", + "target": [ + { "output": "floatexp-ox.bin" } + ] + }, + { + "description": "Test of floating-point formats (-O0)", + "ref": "floatexp", + "option": "-O0", + "target": [ + { "output": "floatexp-o0.bin" } + ] + } +] |