diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-09-18 21:55:56 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-09-18 21:55:56 -0700 |
commit | f48bc6fb485de852c128c5756c77acd0611c2b87 (patch) | |
tree | 77593f0cba7ae5e24932f05761112a14ff4320ab /test/float.asm | |
parent | 5107d672a006750a8f20b227d1fe33ead77ddd41 (diff) | |
download | nasm-f48bc6fb485de852c128c5756c77acd0611c2b87.tar.gz nasm-f48bc6fb485de852c128c5756c77acd0611c2b87.tar.bz2 nasm-f48bc6fb485de852c128c5756c77acd0611c2b87.zip |
Support generating NaNs and infinities
Support generating NaNs and infinities as part of floating-point
constants.
Diffstat (limited to 'test/float.asm')
-rw-r--r-- | test/float.asm | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/test/float.asm b/test/float.asm index 30d1f06..bcb2ec2 100644 --- a/test/float.asm +++ b/test/float.asm @@ -21,6 +21,12 @@ dw 1.83203125e-6 ; Denormal! dw +1.83203125e-6 ; Denormal! dw -1.83203125e-6 ; Denormal! + dw __Infinity__ + dw +__Infinity__ + dw -__Infinity__ + dw __NaN__ + dw __QNaN__ + dw __SNaN__ ; 32-bit dd 1.0 @@ -41,6 +47,12 @@ dd 1.83203125e-40 ; Denormal! dd +1.83203125e-40 ; Denormal! dd -1.83203125e-40 ; Denormal! + dd __Infinity__ + dd +__Infinity__ + dd -__Infinity__ + dd __NaN__ + dd __QNaN__ + dd __SNaN__ ; 64-bit dq 1.0 @@ -61,6 +73,12 @@ dq 1.83203125e-320 ; Denormal! dq +1.83203125e-320 ; Denormal! dq -1.83203125e-320 ; Denormal! + dq __Infinity__ + dq +__Infinity__ + dq -__Infinity__ + dq __NaN__ + dq __QNaN__ + dq __SNaN__ ; 80-bit dt 1.0 @@ -81,6 +99,12 @@ dt 1.83203125e-4940 ; Denormal! dt +1.83203125e-4940 ; Denormal! dt -1.83203125e-4940 ; Denormal! + dt __Infinity__ + dt +__Infinity__ + dt -__Infinity__ + dt __NaN__ + dt __QNaN__ + dt __SNaN__ ; 128-bit do 1.0 @@ -101,3 +125,9 @@ do 1.83203125e-4940 ; Denormal! do +1.83203125e-4940 ; Denormal! do -1.83203125e-4940 ; Denormal! + do __Infinity__ + do +__Infinity__ + do -__Infinity__ + do __NaN__ + do __QNaN__ + do __SNaN__ |