mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
travis: update float test
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
e715b61509
commit
ecd704d846
@ -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
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user