mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
733cbb3197
Using hidden files are rather antisocial, and rather pointless in this particular context. Change .stdout and .stderr to simply stdout and stderr. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
136 lines
2.5 KiB
NASM
136 lines
2.5 KiB
NASM
;Testname=unoptimized; Arguments=-O0 -fbin -ofloat8.bin; Files=stdout stderr float8.bin
|
|
;Testname=optimized; Arguments=-Ox -fbin -ofloat8.bin; Files=stdout stderr float8.bin
|
|
|
|
; Test of 8-bit floating-point constants
|
|
|
|
; Zero
|
|
db 0.0 ; 00h
|
|
|
|
; Denorms
|
|
db 0.001953125 ; 01h
|
|
db 0.00390625 ; 02h
|
|
db 0.005859375 ; 03h
|
|
db 0.0078125 ; 04h
|
|
db 0.009765625 ; 05h
|
|
db 0.01171875 ; 06h
|
|
db 0.013671875 ; 07h
|
|
|
|
; Normals
|
|
db 0.015625 ; 08h
|
|
db 0.017578125 ; 09h
|
|
db 0.01953125 ; 0Ah
|
|
db 0.021484375 ; 0Bh
|
|
db 0.0234375 ; 0Ch
|
|
db 0.025390625 ; 0Dh
|
|
db 0.02734375 ; 0Eh
|
|
db 0.029296875 ; 0Fh
|
|
db 0.03125 ; 10h
|
|
db 0.03515625 ; 11h
|
|
db 0.0390625 ; 12h
|
|
db 0.04296875 ; 13h
|
|
db 0.046875 ; 14h
|
|
db 0.05078125 ; 15h
|
|
db 0.0546875 ; 16h
|
|
db 0.05859375 ; 17h
|
|
db 0.0625 ; 18h
|
|
db 0.0703125 ; 19h
|
|
db 0.078125 ; 1Ah
|
|
db 0.0859375 ; 1Bh
|
|
db 0.09375 ; 1Ch
|
|
db 0.1015625 ; 1Dh
|
|
db 0.109375 ; 1Eh
|
|
db 0.1171875 ; 1Fh
|
|
db 0.125 ; 20h
|
|
db 0.140625 ; 21h
|
|
db 0.15625 ; 22h
|
|
db 0.171875 ; 23h
|
|
db 0.1875 ; 24h
|
|
db 0.203125 ; 25h
|
|
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