Version 0.99.03
[nasm/avx512.git] / test / floatx.asm
blobf513ec8313d76136667d3994e3fcb138a8bee5a1
2 ; floatx.asm
4 ; Test hexadecimal floating-point numbers
6 ; 16-bit
7 dw 1.0
8 dw 0x1.0
9 dw 2.0
10 dw 0x2.0
11 dw 0x1.0p+1
12 dw 0x1.0p-1
13 dw 0x0.0
14 dw 0x1.23456789
15 dw 0x0.123456789
16 dw 0x0.0000123456789
17 dw 0x1.23456789p10
18 dw 0x1.23456789p+10
19 dw 0x1.23456789p-10
20 dw 0x0.123456789p10
21 dw 0x0.123456789p+10
22 dw 0x0.123456789abcdef0123456789abcdef012345p-10
23 dw 0x0.0000123456789
24 dw 0x0.0000123456789p+10
25 dw 0x0.0000123456789p-10
27 ; 32-bit
28 dd 1.0
29 dd 0x1.0
30 dd 2.0
31 dd 0x2.0
32 dd 0x1.0p+1
33 dd 0x1.0p-1
34 dd 0x0.0
35 dd 0x1.23456789
36 dd 0x0.123456789
37 dd 0x0.0000123456789
38 dd 0x1.23456789p10
39 dd 0x1.23456789p+10
40 dd 0x1.23456789p-10
41 dd 0x0.123456789p10
42 dd 0x0.123456789p+10
43 dd 0x0.123456789abcdef0123456789abcdef012345p-10
44 dd 0x0.0000123456789
45 dd 0x0.0000123456789p+10
46 dd 0x0.0000123456789p-10
47 dd 0x123456789.0
48 dd 0x0000123456789.0
49 dd 0x123456789.0p+0
50 dd 0x123456789.0p+64
52 ; 64-bit
53 dq 1.0
54 dq 0x1.0
55 dq 2.0
56 dq 0x2.0
57 dq 0x1.0p+1
58 dq 0x1.0p-1
59 dq 0x0.0
60 dq 0x1.23456789
61 dq 0x0.123456789
62 dq 0x0.0000123456789
63 dq 0x1.23456789p10
64 dq 0x1.23456789p+10
65 dq 0x1.23456789p-10
66 dq 0x0.123456789p10
67 dq 0x0.123456789p+10
68 dq 0x0.123456789abcdef0123456789abcdef012345p-10
69 dq 0x0.0000123456789
70 dq 0x0.0000123456789p+10
71 dq 0x0.0000123456789p-10
72 dq 0x123456789.0
73 dq 0x0000123456789.0
74 dq 0x123456789.0p+0
75 dq 0x123456789.0p+300
77 ; 80-bit
78 dt 1.0
79 dt 0x1.0
80 dt 2.0
81 dt 0x2.0
82 dt 0x1.0p+1
83 dt 0x1.0p-1
84 dt 0x0.0
85 dt 0x1.23456789
86 dt 0x0.123456789
87 dt 0x0.0000123456789
88 dt 0x1.23456789p10
89 dt 0x1.23456789p+10
90 dt 0x1.23456789p-10
91 dt 0x0.123456789p10
92 dt 0x0.123456789p+10
93 dt 0x0.123456789abcdef0123456789abcdef012345p-10
94 dt 0x0.0000123456789
95 dt 0x0.0000123456789p+10
96 dt 0x0.0000123456789p-10
97 dt 0x123456789.0
98 dt 0x0000123456789.0
99 dt 0x123456789.0p+0
100 dt 0x123456789.0p+1024
102 ; 128-bit
103 do 1.0
104 do 0x1.0
105 do 2.0
106 do 0x2.0
107 do 0x1.0p+1
108 do 0x1.0p-1
109 do 0x0.0
110 do 0x1.23456789
111 do 0x0.123456789
112 do 0x0.0000123456789
113 do 0x1.23456789p10
114 do 0x1.23456789p+10
115 do 0x1.23456789p-10
116 do 0x0.123456789p10
117 do 0x0.123456789p+10
118 do 0x0.123456789abcdef0123456789abcdef012345p-10
119 do 0x0.0000123456789
120 do 0x0.0000123456789p+10
121 do 0x0.0000123456789p-10
122 do 0x123456789.0
123 do 0x0000123456789.0
124 do 0x123456789.0p+0
125 do 0x123456789.0p+1024