[nasm:master] travis: update float test
nasm-bot for Cyrill Gorcunov
gorcunov at gmail.com
Wed Oct 14 14:57:03 PDT 2020
Commit-ID: ecd704d84689e05d3f9ca5464749add1de2f3f24
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=ecd704d84689e05d3f9ca5464749add1de2f3f24
Author: Cyrill Gorcunov <gorcunov at gmail.com>
AuthorDate: Thu, 15 Oct 2020 00:40:36 +0300
Committer: Cyrill Gorcunov <gorcunov at gmail.com>
CommitDate: Thu, 15 Oct 2020 00:40:36 +0300
travis: update float test
Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
travis/test/float.asm | 34 ++++++++++++++++++++++++++++++++++
travis/test/float.bin.t | Bin 1148 -> 1228 bytes
2 files changed, 34 insertions(+)
diff --git a/travis/test/float.asm b/travis/test/float.asm
index c0978b58..ed6b32dc 100644
--- a/travis/test/float.asm
+++ b/travis/test/float.asm
@@ -2,6 +2,8 @@
; Test of floating-point formats
;
+%use fp
+
; 8-bit
db 1.0
db +1.0
@@ -62,6 +64,37 @@
dw __SNaN__
dw 3.1415926535_8979323846_2643383279_5028841971_6939937510_5
+; 16-bit bfloat
+ bf16 1.0
+ bf16 +1.0
+ bf16 -1.0
+ bf16 1.5
+ bf16 +1.5
+ bf16 -1.5
+ bf16 0.0
+ bf16 +0.0
+ bf16 -0.0
+ bf16 1.83203125
+ bf16 +1.83203125
+ bf16 -1.83203125
+ bf16 1.83203125e15
+ bf16 +1.83203125e15
+ bf16 -1.83203125e15
+ bf16 1.83203125e-15
+ bf16 +1.83203125e-15
+ bf16 -1.83203125e-15
+ bf16 1.83203125e-40 ; Denormal!
+ bf16 +1.83203125e-40 ; Denormal!
+ bf16 -1.83203125e-40 ; Denormal!
+ bf16 __Infinity__
+ bf16 +__Infinity__
+ bf16 -__Infinity__
+ bf16 __NaN__
+ bf16 __QNaN__
+ bf16 __SNaN__
+ bf16 3.1415926535_8979323846_2643383279_5028841971_6939937510_5
+ bf16 -3.1415, NaN, 2000.0, +Inf
+
; 32-bit
dd 1.0
dd +1.0
@@ -91,6 +124,7 @@
dd __QNaN__
dd __SNaN__
dd 3.1415926535_8979323846_2643383279_5028841971_6939937510_5
+ dd -3.1415, NaN, 2000.0, +Inf
; 64-bit
dq 1.0
diff --git a/travis/test/float.bin.t b/travis/test/float.bin.t
index 3a688d6c..f666b1b3 100644
Binary files a/travis/test/float.bin.t and b/travis/test/float.bin.t differ
More information about the Nasm-commits
mailing list