summaryrefslogtreecommitdiff
path: root/test/floatb.asm
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-05 14:36:03 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-05 14:36:03 -0700
commit9d14a1085816f1b80444aca4985626a7e96f7d12 (patch)
tree072c098aa24834045a1d588b7a745028d44da82d /test/floatb.asm
parent6b74577d7f23485f93c7715fffd0fb534e9709ef (diff)
downloadnasm-9d14a1085816f1b80444aca4985626a7e96f7d12.tar.gz
Add test for problematic floats
Diffstat (limited to 'test/floatb.asm')
-rw-r--r--test/floatb.asm22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/floatb.asm b/test/floatb.asm
new file mode 100644
index 00000000..b13c4d34
--- /dev/null
+++ b/test/floatb.asm
@@ -0,0 +1,22 @@
+ ;; Known problematic floating-point numbers and their proper
+ ;; encoding...
+
+ 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