nasm/travis/floatb/floatb.asm
H. Peter Anvin (Intel) 7f69cf689c travis: reorganize directories, add tests from the test/ directory
This is a mostly automated, partially AI-assisted migration of tests
from the test/ directory into the travis framework.

Running tests manually in the test/ directory is still supported, but
move common include files into travis/test and add a default -I option
to Makefile.in in the test/ directory.

The incbin test fails for pre-existing reasons; for now it contains an
stderr file with the errors. The problem is that INCBIN is both a
macro and a special instruction (not even a directive...), but there
currently is no way to handle prefixes, *especially* TIMES, in
multi-line macros. This is a separate problem and needs to be dealt
with as such.

Reorganize the travis directory so that each test or collection of
tests are in a separate subdirectory of travis/, and travis itself
lives in tools/travis to avoid creating deeper paths.

Add support for recording compression options in the travis .json
files, so that compressed files can be recreated with the same
options: because of the generally repetitive nature of the binary
output test files, the parameters used for xz compression can matter
enormously.

These are combined into a single huge commit to avoid adding large
binary files into the repository that then would immediately be
obsoleted, but still retained in git.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
2026-06-30 20:54:46 -07:00

56 lines
1 KiB
NASM

;; Known problematic floating-point numbers and their proper
;; encoding...
bits 64
dd 1.1e10
dd 0x5023e9ac ; Should be...
dd 50.40e9
dd 0x513bc130 ; Should be...
dq 1.4e23
dq 0x44bda56a4b0835c0
dq 50.48e21
dq 0x44a5610d7502feae
dt 1.2e28
dq 0x9b18ab5df7180b6c
dw 0x405c
dt 50.46e25
dq 0xd0b29a67e95dcb60
dw 0x4057
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
;; 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