aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2020-10-15 00:40:36 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2020-10-15 00:40:36 +0300
commitecd704d84689e05d3f9ca5464749add1de2f3f24 (patch)
treeffa9200ef11147058b5464522ce00ebf24dd0865
parente715b61509934076b8790a0bca5121912fc65a60 (diff)
downloadnasm-ecd704d84689e05d3f9ca5464749add1de2f3f24.tar.gz
nasm-ecd704d84689e05d3f9ca5464749add1de2f3f24.tar.xz
nasm-ecd704d84689e05d3f9ca5464749add1de2f3f24.zip
travis: update float test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--travis/test/float.asm34
-rw-r--r--travis/test/float.bin.tbin1148 -> 1228 bytes
2 files changed, 34 insertions, 0 deletions
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
--- a/travis/test/float.bin.t
+++ b/travis/test/float.bin.t
Binary files differ