2008-04-23 21:05:31 +08:00
|
|
|
;Testname=unoptimized; Arguments=-O0 -fbin -ofloat.bin; Files=.stdout .stderr float.bin
|
|
|
|
;Testname=optimized; Arguments=-Ox -fbin -ofloat.bin; Files=.stdout .stderr float.bin
|
|
|
|
|
2007-09-19 08:50:34 +08:00
|
|
|
;
|
|
|
|
; Test of floating-point formats
|
|
|
|
;
|
|
|
|
|
2007-10-30 11:20:12 +08:00
|
|
|
; 8-bit
|
|
|
|
db 1.0
|
|
|
|
db +1.0
|
|
|
|
db -1.0
|
|
|
|
db 1.5
|
|
|
|
db +1.5
|
|
|
|
db -1.5
|
|
|
|
db 0.0
|
|
|
|
db +0.0
|
|
|
|
db -0.0
|
|
|
|
db 1.83203125
|
|
|
|
db +1.83203125
|
|
|
|
db -1.83203125
|
|
|
|
db 1.83203125e1
|
|
|
|
db +1.83203125e1
|
|
|
|
db -1.83203125e1
|
|
|
|
db 1.83203125e-1
|
|
|
|
db +1.83203125e-1
|
|
|
|
db -1.83203125e-1
|
|
|
|
db 1.13203125e-2 ; Denormal!
|
|
|
|
db +1.13203125e-2 ; Denormal!
|
|
|
|
db -1.13203125e-2 ; Denormal!
|
|
|
|
db __Infinity__
|
|
|
|
db +__Infinity__
|
|
|
|
db -__Infinity__
|
|
|
|
db __NaN__
|
|
|
|
db __QNaN__
|
|
|
|
db __SNaN__
|
|
|
|
db 3.1415926535_8979323846_2643383279_5028841971_6939937510_5
|
|
|
|
|
2007-09-19 08:50:34 +08:00
|
|
|
; 16-bit
|
|
|
|
dw 1.0
|
|
|
|
dw +1.0
|
|
|
|
dw -1.0
|
2007-10-17 01:31:16 +08:00
|
|
|
dw 1.5
|
|
|
|
dw +1.5
|
|
|
|
dw -1.5
|
2007-09-19 08:50:34 +08:00
|
|
|
dw 0.0
|
|
|
|
dw +0.0
|
|
|
|
dw -0.0
|
|
|
|
dw 1.83203125
|
|
|
|
dw +1.83203125
|
|
|
|
dw -1.83203125
|
|
|
|
dw 1.83203125e3
|
|
|
|
dw +1.83203125e3
|
|
|
|
dw -1.83203125e3
|
|
|
|
dw 1.83203125e-3
|
|
|
|
dw +1.83203125e-3
|
|
|
|
dw -1.83203125e-3
|
|
|
|
dw 1.83203125e-6 ; Denormal!
|
|
|
|
dw +1.83203125e-6 ; Denormal!
|
|
|
|
dw -1.83203125e-6 ; Denormal!
|
2007-09-19 12:55:56 +08:00
|
|
|
dw __Infinity__
|
|
|
|
dw +__Infinity__
|
|
|
|
dw -__Infinity__
|
|
|
|
dw __NaN__
|
|
|
|
dw __QNaN__
|
|
|
|
dw __SNaN__
|
2007-10-30 11:20:12 +08:00
|
|
|
dw 3.1415926535_8979323846_2643383279_5028841971_6939937510_5
|
2007-09-19 08:50:34 +08:00
|
|
|
|
|
|
|
; 32-bit
|
|
|
|
dd 1.0
|
|
|
|
dd +1.0
|
|
|
|
dd -1.0
|
2007-10-17 01:31:16 +08:00
|
|
|
dd 1.5
|
|
|
|
dd +1.5
|
|
|
|
dd -1.5
|
2007-09-19 08:50:34 +08:00
|
|
|
dd 0.0
|
|
|
|
dd +0.0
|
|
|
|
dd -0.0
|
|
|
|
dd 1.83203125
|
|
|
|
dd +1.83203125
|
|
|
|
dd -1.83203125
|
|
|
|
dd 1.83203125e15
|
|
|
|
dd +1.83203125e15
|
|
|
|
dd -1.83203125e15
|
|
|
|
dd 1.83203125e-15
|
|
|
|
dd +1.83203125e-15
|
|
|
|
dd -1.83203125e-15
|
|
|
|
dd 1.83203125e-40 ; Denormal!
|
|
|
|
dd +1.83203125e-40 ; Denormal!
|
|
|
|
dd -1.83203125e-40 ; Denormal!
|
2007-09-19 12:55:56 +08:00
|
|
|
dd __Infinity__
|
|
|
|
dd +__Infinity__
|
|
|
|
dd -__Infinity__
|
|
|
|
dd __NaN__
|
|
|
|
dd __QNaN__
|
|
|
|
dd __SNaN__
|
2007-10-30 11:20:12 +08:00
|
|
|
dd 3.1415926535_8979323846_2643383279_5028841971_6939937510_5
|
2007-09-19 08:50:34 +08:00
|
|
|
|
|
|
|
; 64-bit
|
|
|
|
dq 1.0
|
|
|
|
dq +1.0
|
|
|
|
dq -1.0
|
2007-10-17 01:31:16 +08:00
|
|
|
dq 1.5
|
|
|
|
dq +1.5
|
|
|
|
dq -1.5
|
2007-09-19 08:50:34 +08:00
|
|
|
dq 0.0
|
|
|
|
dq +0.0
|
|
|
|
dq -0.0
|
|
|
|
dq 1.83203125
|
|
|
|
dq +1.83203125
|
|
|
|
dq -1.83203125
|
|
|
|
dq 1.83203125e300
|
|
|
|
dq +1.83203125e300
|
|
|
|
dq -1.83203125e300
|
|
|
|
dq 1.83203125e-300
|
|
|
|
dq +1.83203125e-300
|
|
|
|
dq -1.83203125e-300
|
|
|
|
dq 1.83203125e-320 ; Denormal!
|
|
|
|
dq +1.83203125e-320 ; Denormal!
|
|
|
|
dq -1.83203125e-320 ; Denormal!
|
2007-09-19 12:55:56 +08:00
|
|
|
dq __Infinity__
|
|
|
|
dq +__Infinity__
|
|
|
|
dq -__Infinity__
|
|
|
|
dq __NaN__
|
|
|
|
dq __QNaN__
|
|
|
|
dq __SNaN__
|
2007-10-30 11:20:12 +08:00
|
|
|
dq 3.1415926535_8979323846_2643383279_5028841971_6939937510_5
|
|
|
|
|
2007-09-19 08:50:34 +08:00
|
|
|
; 80-bit
|
|
|
|
dt 1.0
|
|
|
|
dt +1.0
|
|
|
|
dt -1.0
|
2007-10-17 01:31:16 +08:00
|
|
|
dt 1.5
|
|
|
|
dt +1.5
|
|
|
|
dt -1.5
|
2007-09-19 08:50:34 +08:00
|
|
|
dt 0.0
|
|
|
|
dt +0.0
|
|
|
|
dt -0.0
|
|
|
|
dt 1.83203125
|
|
|
|
dt +1.83203125
|
|
|
|
dt -1.83203125
|
|
|
|
dt 1.83203125e+4000
|
|
|
|
dt +1.83203125e+4000
|
|
|
|
dt -1.83203125e+4000
|
|
|
|
dt 1.83203125e-4000
|
|
|
|
dt +1.83203125e-4000
|
|
|
|
dt -1.83203125e-4000
|
|
|
|
dt 1.83203125e-4940 ; Denormal!
|
|
|
|
dt +1.83203125e-4940 ; Denormal!
|
|
|
|
dt -1.83203125e-4940 ; Denormal!
|
2007-09-19 12:55:56 +08:00
|
|
|
dt __Infinity__
|
|
|
|
dt +__Infinity__
|
|
|
|
dt -__Infinity__
|
|
|
|
dt __NaN__
|
|
|
|
dt __QNaN__
|
|
|
|
dt __SNaN__
|
2007-10-30 11:20:12 +08:00
|
|
|
dt 3.1415926535_8979323846_2643383279_5028841971_6939937510_5
|
2007-09-19 08:50:34 +08:00
|
|
|
|
|
|
|
; 128-bit
|
|
|
|
do 1.0
|
|
|
|
do +1.0
|
|
|
|
do -1.0
|
2007-10-17 01:31:16 +08:00
|
|
|
do 1.5
|
|
|
|
do +1.5
|
|
|
|
do -1.5
|
2007-09-19 08:50:34 +08:00
|
|
|
do 0.0
|
|
|
|
do +0.0
|
|
|
|
do -0.0
|
|
|
|
do 1.83203125
|
|
|
|
do +1.83203125
|
|
|
|
do -1.83203125
|
|
|
|
do 1.83203125e+4000
|
|
|
|
do +1.83203125e+4000
|
|
|
|
do -1.83203125e+4000
|
|
|
|
do 1.83203125e-4000
|
|
|
|
do +1.83203125e-4000
|
|
|
|
do -1.83203125e-4000
|
|
|
|
do 1.83203125e-4940 ; Denormal!
|
|
|
|
do +1.83203125e-4940 ; Denormal!
|
|
|
|
do -1.83203125e-4940 ; Denormal!
|
2007-09-19 12:55:56 +08:00
|
|
|
do __Infinity__
|
|
|
|
do +__Infinity__
|
|
|
|
do -__Infinity__
|
|
|
|
do __NaN__
|
|
|
|
do __QNaN__
|
|
|
|
do __SNaN__
|
2007-10-30 11:20:12 +08:00
|
|
|
do 3.1415926535_8979323846_2643383279_5028841971_6939937510_5
|