2008-10-07 09:27:30 +08:00
|
|
|
;Testname=unoptimized; Arguments=-O0 -fbin -ofloatb.bin; Files=stdout stderr floatb.bin
|
|
|
|
;Testname=optimized; Arguments=-Ox -fbin -ofloatb.bin; Files=stdout stderr floatb.bin
|
2008-04-23 21:05:31 +08:00
|
|
|
|
2007-10-06 05:36:03 +08:00
|
|
|
;; Known problematic floating-point numbers and their proper
|
|
|
|
;; encoding...
|
2007-10-17 06:46:04 +08:00
|
|
|
|
|
|
|
bits 64
|
2018-11-27 06:59:35 +08:00
|
|
|
|
2007-10-17 06:46:04 +08:00
|
|
|
dd 1.1e10
|
|
|
|
dd 0x5023e9ac ; Should be...
|
2018-11-27 06:59:35 +08:00
|
|
|
|
2007-10-17 06:46:04 +08:00
|
|
|
dd 50.40e9
|
|
|
|
dd 0x513bc130 ; Should be...
|
2007-10-06 05:36:03 +08:00
|
|
|
|
2007-10-17 06:46:04 +08:00
|
|
|
dq 1.4e23
|
|
|
|
dq 0x44bda56a4b0835c0
|
2007-10-06 05:36:03 +08:00
|
|
|
|
2007-10-17 06:46:04 +08:00
|
|
|
dq 50.48e21
|
|
|
|
dq 0x44a5610d7502feae
|
2007-10-06 05:36:03 +08:00
|
|
|
|
2007-10-17 06:46:04 +08:00
|
|
|
dt 1.2e28
|
|
|
|
dq 0x9b18ab5df7180b6c
|
|
|
|
dw 0x405c
|
2018-11-27 06:59:35 +08:00
|
|
|
|
2007-10-17 06:46:04 +08:00
|
|
|
dt 50.46e25
|
|
|
|
dq 0xd0b29a67e95dcb60
|
|
|
|
dw 0x4057
|
|
|
|
|
2018-11-27 13:38:14 +08:00
|
|
|
do 0xf.ffffff8p-4
|
|
|
|
do 0q3.7777777774p-2
|
|
|
|
do 0b1.1111_1111_1111_1111_1111_1111_1111_111p-1
|
|
|
|
|
|
|
|
dt 0xf.ffffff8p-4
|
|
|
|
dt 0q3.7777777774p-2
|
|
|
|
dt 0b1.1111_1111_1111_1111_1111_1111_1111_111p-1
|
|
|
|
|
|
|
|
dq 0xf.ffffff8p-4
|
|
|
|
dq 0q3.7777777774p-2
|
|
|
|
dq 0b1.1111_1111_1111_1111_1111_1111_1111_111p-1
|
|
|
|
|
|
|
|
dd 0xf.ffffff8p-4
|
|
|
|
dd 0q3.7777777774p-2
|
|
|
|
dd 0b1.1111_1111_1111_1111_1111_1111_1111_111p-1
|
|
|
|
|
|
|
|
dw 0xf.ffffff8p-4
|
|
|
|
dw 0q3.7777777774p-2
|
|
|
|
dw 0b1.1111_1111_1111_1111_1111_1111_1111_111p-1
|
|
|
|
|
|
|
|
db 0xf.ffffff8p-4
|
|
|
|
db 0q3.7777777774p-2
|
|
|
|
db 0b1.1111_1111_1111_1111_1111_1111_1111_111p-1
|
|
|
|
|
2018-11-27 06:59:35 +08:00
|
|
|
|
2007-10-17 06:46:04 +08:00
|
|
|
;; Way too big numbers, should overflow to +Inf
|
|
|
|
dd 1.0E646456955
|
|
|
|
dd 1.0E646456956
|
|
|
|
dd 1.0E2147483646
|
|
|
|
dd 1.0E2147483647
|
|
|
|
dd 1.0E2147483648
|
|
|
|
dd 1.0E2147483649
|