diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-10-16 15:46:04 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-10-16 15:46:04 -0700 |
commit | a366cac2a6c8a142035732876d7e53d150d9e7e0 (patch) | |
tree | f7fe8c798b587c9d9a1f0e8e28b56115cf4a4b25 /test | |
parent | 956391074765de8fb93173948d500d6cedf9768e (diff) | |
download | nasm-a366cac2a6c8a142035732876d7e53d150d9e7e0.tar.gz nasm-a366cac2a6c8a142035732876d7e53d150d9e7e0.tar.bz2 nasm-a366cac2a6c8a142035732876d7e53d150d9e7e0.zip |
Tests of obscenely large exponents
Diffstat (limited to 'test')
-rw-r--r-- | test/floatb.asm | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/test/floatb.asm b/test/floatb.asm index b13c4d3..0665c60 100644 --- a/test/floatb.asm +++ b/test/floatb.asm @@ -1,22 +1,32 @@ ;; Known problematic floating-point numbers and their proper ;; encoding... + + bits 64 - dd 1.1e10 - dd 0x5023e9ac ; Should be... + dd 1.1e10 + dd 0x5023e9ac ; Should be... - dd 50.40e9 - dd 0x513bc130 ; Should be... + dd 50.40e9 + dd 0x513bc130 ; Should be... - dq 1.4e23 - dq 0x44bda56a4b0835c0 + dq 1.4e23 + dq 0x44bda56a4b0835c0 - dq 50.48e21 - dq 0x44a5610d7502feae + dq 50.48e21 + dq 0x44a5610d7502feae - dt 1.2e28 - dq 0x9b18ab5df7180b6c - dw 0x405c + dt 1.2e28 + dq 0x9b18ab5df7180b6c + dw 0x405c - dt 50.46e25 - dq 0xd0b29a67e95dcb60 - dw 0x4057 + dt 50.46e25 + dq 0xd0b29a67e95dcb60 + dw 0x4057 + + ;; 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 |