summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-10-04 23:51:08 -0700
committerH. Peter Anvin <hpa@zytor.com>2007-10-04 23:51:08 -0700
commit6b74577d7f23485f93c7715fffd0fb534e9709ef (patch)
tree8af1940d16f429e69b1ce3edc8127c238ab71736 /test
parent6b8abf54d3b667be39166faa69a89d62747f8280 (diff)
downloadnasm-6b74577d7f23485f93c7715fffd0fb534e9709ef.tar.gz
nasm-6b74577d7f23485f93c7715fffd0fb534e9709ef.tar.bz2
nasm-6b74577d7f23485f93c7715fffd0fb534e9709ef.zip
floatx.asm: add Inf and NaN to the boundary condition tests
Diffstat (limited to 'test')
-rw-r--r--test/floatx.asm16
1 files changed, 14 insertions, 2 deletions
diff --git a/test/floatx.asm b/test/floatx.asm
index ee1f7a9..28b805e 100644
--- a/test/floatx.asm
+++ b/test/floatx.asm
@@ -3,6 +3,9 @@
;
; Test hexadecimal floating-point numbers
+%define Inf __Infinity__
+%define NaN __QNaN__
+
; 16-bit
dw 1.0
dw 0x1.0
@@ -28,6 +31,8 @@
dw 0x1.0p-15 ; Denorm
dw 0x1.0p-14 ; Smallest non-denorm
dw 0x1.0p+15 ; Biggest possible exponent
+ dw Inf ; Infinity
+ dw NaN
; 32-bit
dd 1.0
@@ -58,6 +63,8 @@
dd 0x1.0p-127 ; Denorm
dd 0x1.0p-126 ; Smallest non-denorm
dd 0x1.0p+127 ; Biggest possible exponent
+ dd Inf ; Infinity
+ dd NaN
; 64-bit
dq 1.0
@@ -88,7 +95,9 @@
dq 0x1.0p-1023 ; Denorm
dq 0x1.0p-1022 ; Smallest non-denorm
dq 0x1.0p+1023 ; Biggest possible exponent
-
+ dq Inf ; Infinity
+ dq NaN
+
; 80-bit
dt 1.0
dt 0x1.0
@@ -118,7 +127,8 @@
dt 0x1.0p-16383 ; Denorm
dt 0x1.0p-16382 ; Smallest non-denorm
dt 0x1.0p+16383 ; Biggest possible exponent
-
+ dt Inf ; Infinity
+ dt NaN
; 128-bit
do 1.0
@@ -149,3 +159,5 @@
do 0x1.0p-16383 ; Denorm
do 0x1.0p-16382 ; Smallest non-denorm
do 0x1.0p+16383 ; Biggest possible exponent
+ do Inf ; Infinity
+ do NaN