|
1 ------------------------------------------------------------------------ |
|
2 -- dqNextToward.decTest -- decQuad next toward rhs [754r nextafter] -- |
|
3 -- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. -- |
|
4 ------------------------------------------------------------------------ |
|
5 -- Please see the document "General Decimal Arithmetic Testcases" -- |
|
6 -- at http://www2.hursley.ibm.com/decimal for the description of -- |
|
7 -- these testcases. -- |
|
8 -- -- |
|
9 -- These testcases are experimental ('beta' versions), and they -- |
|
10 -- may contain errors. They are offered on an as-is basis. In -- |
|
11 -- particular, achieving the same results as the tests here is not -- |
|
12 -- a guarantee that an implementation complies with any Standard -- |
|
13 -- or specification. The tests are not exhaustive. -- |
|
14 -- -- |
|
15 -- Please send comments, suggestions, and corrections to the author: -- |
|
16 -- Mike Cowlishaw, IBM Fellow -- |
|
17 -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- |
|
18 -- mfc@uk.ibm.com -- |
|
19 ------------------------------------------------------------------------ |
|
20 version: 2.58 |
|
21 |
|
22 -- All operands and results are decQuads. |
|
23 extended: 1 |
|
24 clamp: 1 |
|
25 precision: 34 |
|
26 maxExponent: 6144 |
|
27 minExponent: -6143 |
|
28 rounding: half_even |
|
29 |
|
30 |
|
31 -- Sanity check with a scattering of numerics |
|
32 dqnextt001 nexttoward 10 10 -> 10 |
|
33 dqnextt002 nexttoward -10 -10 -> -10 |
|
34 dqnextt003 nexttoward 1 10 -> 1.000000000000000000000000000000001 |
|
35 dqnextt004 nexttoward 1 -10 -> 0.9999999999999999999999999999999999 |
|
36 dqnextt005 nexttoward -1 10 -> -0.9999999999999999999999999999999999 |
|
37 dqnextt006 nexttoward -1 -10 -> -1.000000000000000000000000000000001 |
|
38 dqnextt007 nexttoward 0 10 -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
39 dqnextt008 nexttoward 0 -10 -> -1E-6176 Underflow Subnormal Inexact Rounded |
|
40 dqnextt009 nexttoward 9.999999999999999999999999999999999E+6144 +Infinity -> Infinity Overflow Inexact Rounded |
|
41 dqnextt010 nexttoward -9.999999999999999999999999999999999E+6144 -Infinity -> -Infinity Overflow Inexact Rounded |
|
42 dqnextt011 nexttoward 9.999999999999999999999999999999999 10 -> 10.00000000000000000000000000000000 |
|
43 dqnextt012 nexttoward 10 9.999999999999999999999999999999999 -> 9.999999999999999999999999999999999 |
|
44 dqnextt013 nexttoward -9.999999999999999999999999999999999 -10 -> -10.00000000000000000000000000000000 |
|
45 dqnextt014 nexttoward -10 -9.999999999999999999999999999999999 -> -9.999999999999999999999999999999999 |
|
46 dqnextt015 nexttoward 9.999999999999999999999999999999998 10 -> 9.999999999999999999999999999999999 |
|
47 dqnextt016 nexttoward 10 9.999999999999999999999999999999998 -> 9.999999999999999999999999999999999 |
|
48 dqnextt017 nexttoward -9.999999999999999999999999999999998 -10 -> -9.999999999999999999999999999999999 |
|
49 dqnextt018 nexttoward -10 -9.999999999999999999999999999999998 -> -9.999999999999999999999999999999999 |
|
50 |
|
51 ------- lhs=rhs |
|
52 -- finites |
|
53 dqnextt101 nexttoward 7 7 -> 7 |
|
54 dqnextt102 nexttoward -7 -7 -> -7 |
|
55 dqnextt103 nexttoward 75 75 -> 75 |
|
56 dqnextt104 nexttoward -75 -75 -> -75 |
|
57 dqnextt105 nexttoward 7.50 7.5 -> 7.50 |
|
58 dqnextt106 nexttoward -7.50 -7.50 -> -7.50 |
|
59 dqnextt107 nexttoward 7.500 7.5000 -> 7.500 |
|
60 dqnextt108 nexttoward -7.500 -7.5 -> -7.500 |
|
61 |
|
62 -- zeros |
|
63 dqnextt111 nexttoward 0 0 -> 0 |
|
64 dqnextt112 nexttoward -0 -0 -> -0 |
|
65 dqnextt113 nexttoward 0E+4 0 -> 0E+4 |
|
66 dqnextt114 nexttoward -0E+4 -0 -> -0E+4 |
|
67 dqnextt115 nexttoward 0.00000000000 0.000000000000 -> 0E-11 |
|
68 dqnextt116 nexttoward -0.00000000000 -0.00 -> -0E-11 |
|
69 dqnextt117 nexttoward 0E-141 0 -> 0E-141 |
|
70 dqnextt118 nexttoward -0E-141 -000 -> -0E-141 |
|
71 |
|
72 -- full coefficients, alternating bits |
|
73 dqnextt121 nexttoward 268268268 268268268 -> 268268268 |
|
74 dqnextt122 nexttoward -268268268 -268268268 -> -268268268 |
|
75 dqnextt123 nexttoward 134134134 134134134 -> 134134134 |
|
76 dqnextt124 nexttoward -134134134 -134134134 -> -134134134 |
|
77 |
|
78 -- Nmax, Nmin, Ntiny |
|
79 dqnextt131 nexttoward 9.999999999999999999999999999999999E+6144 9.999999999999999999999999999999999E+6144 -> 9.999999999999999999999999999999999E+6144 |
|
80 dqnextt132 nexttoward 1E-6143 1E-6143 -> 1E-6143 |
|
81 dqnextt133 nexttoward 1.000000000000000000000000000000000E-6143 1.000000000000000000000000000000000E-6143 -> 1.000000000000000000000000000000000E-6143 |
|
82 dqnextt134 nexttoward 1E-6176 1E-6176 -> 1E-6176 |
|
83 |
|
84 dqnextt135 nexttoward -1E-6176 -1E-6176 -> -1E-6176 |
|
85 dqnextt136 nexttoward -1.000000000000000000000000000000000E-6143 -1.000000000000000000000000000000000E-6143 -> -1.000000000000000000000000000000000E-6143 |
|
86 dqnextt137 nexttoward -1E-6143 -1E-6143 -> -1E-6143 |
|
87 dqnextt138 nexttoward -9.999999999999999999999999999999999E+6144 -9.999999999999999999999999999999999E+6144 -> -9.999999999999999999999999999999999E+6144 |
|
88 |
|
89 ------- lhs<rhs |
|
90 dqnextt201 nexttoward 0.9999999999999999999999999999999995 Infinity -> 0.9999999999999999999999999999999996 |
|
91 dqnextt202 nexttoward 0.9999999999999999999999999999999996 Infinity -> 0.9999999999999999999999999999999997 |
|
92 dqnextt203 nexttoward 0.9999999999999999999999999999999997 Infinity -> 0.9999999999999999999999999999999998 |
|
93 dqnextt204 nexttoward 0.9999999999999999999999999999999998 Infinity -> 0.9999999999999999999999999999999999 |
|
94 dqnextt205 nexttoward 0.9999999999999999999999999999999999 Infinity -> 1.000000000000000000000000000000000 |
|
95 dqnextt206 nexttoward 1.000000000000000000000000000000000 Infinity -> 1.000000000000000000000000000000001 |
|
96 dqnextt207 nexttoward 1.0 Infinity -> 1.000000000000000000000000000000001 |
|
97 dqnextt208 nexttoward 1 Infinity -> 1.000000000000000000000000000000001 |
|
98 dqnextt209 nexttoward 1.000000000000000000000000000000001 Infinity -> 1.000000000000000000000000000000002 |
|
99 dqnextt210 nexttoward 1.000000000000000000000000000000002 Infinity -> 1.000000000000000000000000000000003 |
|
100 dqnextt211 nexttoward 1.000000000000000000000000000000003 Infinity -> 1.000000000000000000000000000000004 |
|
101 dqnextt212 nexttoward 1.000000000000000000000000000000004 Infinity -> 1.000000000000000000000000000000005 |
|
102 dqnextt213 nexttoward 1.000000000000000000000000000000005 Infinity -> 1.000000000000000000000000000000006 |
|
103 dqnextt214 nexttoward 1.000000000000000000000000000000006 Infinity -> 1.000000000000000000000000000000007 |
|
104 dqnextt215 nexttoward 1.000000000000000000000000000000007 Infinity -> 1.000000000000000000000000000000008 |
|
105 dqnextt216 nexttoward 1.000000000000000000000000000000008 Infinity -> 1.000000000000000000000000000000009 |
|
106 dqnextt217 nexttoward 1.000000000000000000000000000000009 Infinity -> 1.000000000000000000000000000000010 |
|
107 dqnextt218 nexttoward 1.000000000000000000000000000000010 Infinity -> 1.000000000000000000000000000000011 |
|
108 dqnextt219 nexttoward 1.000000000000000000000000000000011 Infinity -> 1.000000000000000000000000000000012 |
|
109 |
|
110 dqnextt221 nexttoward -0.9999999999999999999999999999999995 Infinity -> -0.9999999999999999999999999999999994 |
|
111 dqnextt222 nexttoward -0.9999999999999999999999999999999996 Infinity -> -0.9999999999999999999999999999999995 |
|
112 dqnextt223 nexttoward -0.9999999999999999999999999999999997 Infinity -> -0.9999999999999999999999999999999996 |
|
113 dqnextt224 nexttoward -0.9999999999999999999999999999999998 Infinity -> -0.9999999999999999999999999999999997 |
|
114 dqnextt225 nexttoward -0.9999999999999999999999999999999999 Infinity -> -0.9999999999999999999999999999999998 |
|
115 dqnextt226 nexttoward -1.000000000000000000000000000000000 Infinity -> -0.9999999999999999999999999999999999 |
|
116 dqnextt227 nexttoward -1.0 Infinity -> -0.9999999999999999999999999999999999 |
|
117 dqnextt228 nexttoward -1 Infinity -> -0.9999999999999999999999999999999999 |
|
118 dqnextt229 nexttoward -1.000000000000000000000000000000001 Infinity -> -1.000000000000000000000000000000000 |
|
119 dqnextt230 nexttoward -1.000000000000000000000000000000002 Infinity -> -1.000000000000000000000000000000001 |
|
120 dqnextt231 nexttoward -1.000000000000000000000000000000003 Infinity -> -1.000000000000000000000000000000002 |
|
121 dqnextt232 nexttoward -1.000000000000000000000000000000004 Infinity -> -1.000000000000000000000000000000003 |
|
122 dqnextt233 nexttoward -1.000000000000000000000000000000005 Infinity -> -1.000000000000000000000000000000004 |
|
123 dqnextt234 nexttoward -1.000000000000000000000000000000006 Infinity -> -1.000000000000000000000000000000005 |
|
124 dqnextt235 nexttoward -1.000000000000000000000000000000007 Infinity -> -1.000000000000000000000000000000006 |
|
125 dqnextt236 nexttoward -1.000000000000000000000000000000008 Infinity -> -1.000000000000000000000000000000007 |
|
126 dqnextt237 nexttoward -1.000000000000000000000000000000009 Infinity -> -1.000000000000000000000000000000008 |
|
127 dqnextt238 nexttoward -1.000000000000000000000000000000010 Infinity -> -1.000000000000000000000000000000009 |
|
128 dqnextt239 nexttoward -1.000000000000000000000000000000011 Infinity -> -1.000000000000000000000000000000010 |
|
129 dqnextt240 nexttoward -1.000000000000000000000000000000012 Infinity -> -1.000000000000000000000000000000011 |
|
130 |
|
131 -- Zeros |
|
132 dqnextt300 nexttoward 0 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
133 dqnextt301 nexttoward 0.00 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
134 dqnextt302 nexttoward 0E-300 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
135 dqnextt303 nexttoward 0E+300 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
136 dqnextt304 nexttoward 0E+30000 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
137 dqnextt305 nexttoward -0 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
138 dqnextt306 nexttoward -0.00 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
139 dqnextt307 nexttoward -0E-300 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
140 dqnextt308 nexttoward -0E+300 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
141 dqnextt309 nexttoward -0E+30000 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
142 |
|
143 -- specials |
|
144 dqnextt350 nexttoward Inf Infinity -> Infinity |
|
145 dqnextt351 nexttoward -Inf Infinity -> -9.999999999999999999999999999999999E+6144 |
|
146 dqnextt352 nexttoward NaN Infinity -> NaN |
|
147 dqnextt353 nexttoward sNaN Infinity -> NaN Invalid_operation |
|
148 dqnextt354 nexttoward NaN77 Infinity -> NaN77 |
|
149 dqnextt355 nexttoward sNaN88 Infinity -> NaN88 Invalid_operation |
|
150 dqnextt356 nexttoward -NaN Infinity -> -NaN |
|
151 dqnextt357 nexttoward -sNaN Infinity -> -NaN Invalid_operation |
|
152 dqnextt358 nexttoward -NaN77 Infinity -> -NaN77 |
|
153 dqnextt359 nexttoward -sNaN88 Infinity -> -NaN88 Invalid_operation |
|
154 |
|
155 -- Nmax, Nmin, Ntiny, subnormals |
|
156 dqnextt370 nexttoward -9.999999999999999999999999999999999E+6144 Infinity -> -9.999999999999999999999999999999998E+6144 |
|
157 dqnextt371 nexttoward -9.999999999999999999999999999999998E+6144 Infinity -> -9.999999999999999999999999999999997E+6144 |
|
158 dqnextt372 nexttoward -1E-6143 Infinity -> -9.99999999999999999999999999999999E-6144 Underflow Subnormal Inexact Rounded |
|
159 dqnextt373 nexttoward -1.000000000000000E-6143 Infinity -> -9.99999999999999999999999999999999E-6144 Underflow Subnormal Inexact Rounded |
|
160 dqnextt374 nexttoward -9E-6176 Infinity -> -8E-6176 Underflow Subnormal Inexact Rounded |
|
161 dqnextt375 nexttoward -9.9E-6175 Infinity -> -9.8E-6175 Underflow Subnormal Inexact Rounded |
|
162 dqnextt376 nexttoward -9.99999999999999999999999999999E-6147 Infinity -> -9.99999999999999999999999999998E-6147 Underflow Subnormal Inexact Rounded |
|
163 dqnextt377 nexttoward -9.99999999999999999999999999999999E-6144 Infinity -> -9.99999999999999999999999999999998E-6144 Underflow Subnormal Inexact Rounded |
|
164 dqnextt378 nexttoward -9.99999999999999999999999999999998E-6144 Infinity -> -9.99999999999999999999999999999997E-6144 Underflow Subnormal Inexact Rounded |
|
165 dqnextt379 nexttoward -9.99999999999999999999999999999997E-6144 Infinity -> -9.99999999999999999999999999999996E-6144 Underflow Subnormal Inexact Rounded |
|
166 dqnextt380 nexttoward -0E-6176 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
167 dqnextt381 nexttoward -1E-6176 Infinity -> -0E-6176 Underflow Subnormal Inexact Rounded Clamped |
|
168 dqnextt382 nexttoward -2E-6176 Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded |
|
169 |
|
170 dqnextt383 nexttoward 0E-6176 Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
171 dqnextt384 nexttoward 1E-6176 Infinity -> 2E-6176 Underflow Subnormal Inexact Rounded |
|
172 dqnextt385 nexttoward 2E-6176 Infinity -> 3E-6176 Underflow Subnormal Inexact Rounded |
|
173 dqnextt386 nexttoward 10E-6176 Infinity -> 1.1E-6175 Underflow Subnormal Inexact Rounded |
|
174 dqnextt387 nexttoward 100E-6176 Infinity -> 1.01E-6174 Underflow Subnormal Inexact Rounded |
|
175 dqnextt388 nexttoward 100000E-6176 Infinity -> 1.00001E-6171 Underflow Subnormal Inexact Rounded |
|
176 dqnextt389 nexttoward 1.00000000000000000000000000000E-6143 Infinity -> 1.000000000000000000000000000000001E-6143 |
|
177 dqnextt390 nexttoward 1.000000000000000000000000000000000E-6143 Infinity -> 1.000000000000000000000000000000001E-6143 |
|
178 dqnextt391 nexttoward 1E-6143 Infinity -> 1.000000000000000000000000000000001E-6143 |
|
179 dqnextt392 nexttoward 9.999999999999999999999999999999997E+6144 Infinity -> 9.999999999999999999999999999999998E+6144 |
|
180 dqnextt393 nexttoward 9.999999999999999999999999999999998E+6144 Infinity -> 9.999999999999999999999999999999999E+6144 |
|
181 dqnextt394 nexttoward 9.999999999999999999999999999999999E+6144 Infinity -> Infinity Overflow Inexact Rounded |
|
182 |
|
183 ------- lhs>rhs |
|
184 dqnextt401 nexttoward 0.9999999999999999999999999999999995 -Infinity -> 0.9999999999999999999999999999999994 |
|
185 dqnextt402 nexttoward 0.9999999999999999999999999999999996 -Infinity -> 0.9999999999999999999999999999999995 |
|
186 dqnextt403 nexttoward 0.9999999999999999999999999999999997 -Infinity -> 0.9999999999999999999999999999999996 |
|
187 dqnextt404 nexttoward 0.9999999999999999999999999999999998 -Infinity -> 0.9999999999999999999999999999999997 |
|
188 dqnextt405 nexttoward 0.9999999999999999999999999999999999 -Infinity -> 0.9999999999999999999999999999999998 |
|
189 dqnextt406 nexttoward 1.000000000000000000000000000000000 -Infinity -> 0.9999999999999999999999999999999999 |
|
190 dqnextt407 nexttoward 1.0 -Infinity -> 0.9999999999999999999999999999999999 |
|
191 dqnextt408 nexttoward 1 -Infinity -> 0.9999999999999999999999999999999999 |
|
192 dqnextt409 nexttoward 1.000000000000000000000000000000001 -Infinity -> 1.000000000000000000000000000000000 |
|
193 dqnextt410 nexttoward 1.000000000000000000000000000000002 -Infinity -> 1.000000000000000000000000000000001 |
|
194 dqnextt411 nexttoward 1.000000000000000000000000000000003 -Infinity -> 1.000000000000000000000000000000002 |
|
195 dqnextt412 nexttoward 1.000000000000000000000000000000004 -Infinity -> 1.000000000000000000000000000000003 |
|
196 dqnextt413 nexttoward 1.000000000000000000000000000000005 -Infinity -> 1.000000000000000000000000000000004 |
|
197 dqnextt414 nexttoward 1.000000000000000000000000000000006 -Infinity -> 1.000000000000000000000000000000005 |
|
198 dqnextt415 nexttoward 1.000000000000000000000000000000007 -Infinity -> 1.000000000000000000000000000000006 |
|
199 dqnextt416 nexttoward 1.000000000000000000000000000000008 -Infinity -> 1.000000000000000000000000000000007 |
|
200 dqnextt417 nexttoward 1.000000000000000000000000000000009 -Infinity -> 1.000000000000000000000000000000008 |
|
201 dqnextt418 nexttoward 1.000000000000000000000000000000010 -Infinity -> 1.000000000000000000000000000000009 |
|
202 dqnextt419 nexttoward 1.000000000000000000000000000000011 -Infinity -> 1.000000000000000000000000000000010 |
|
203 dqnextt420 nexttoward 1.000000000000000000000000000000012 -Infinity -> 1.000000000000000000000000000000011 |
|
204 |
|
205 dqnextt421 nexttoward -0.9999999999999999999999999999999995 -Infinity -> -0.9999999999999999999999999999999996 |
|
206 dqnextt422 nexttoward -0.9999999999999999999999999999999996 -Infinity -> -0.9999999999999999999999999999999997 |
|
207 dqnextt423 nexttoward -0.9999999999999999999999999999999997 -Infinity -> -0.9999999999999999999999999999999998 |
|
208 dqnextt424 nexttoward -0.9999999999999999999999999999999998 -Infinity -> -0.9999999999999999999999999999999999 |
|
209 dqnextt425 nexttoward -0.9999999999999999999999999999999999 -Infinity -> -1.000000000000000000000000000000000 |
|
210 dqnextt426 nexttoward -1.000000000000000000000000000000000 -Infinity -> -1.000000000000000000000000000000001 |
|
211 dqnextt427 nexttoward -1.0 -Infinity -> -1.000000000000000000000000000000001 |
|
212 dqnextt428 nexttoward -1 -Infinity -> -1.000000000000000000000000000000001 |
|
213 dqnextt429 nexttoward -1.000000000000000000000000000000001 -Infinity -> -1.000000000000000000000000000000002 |
|
214 dqnextt430 nexttoward -1.000000000000000000000000000000002 -Infinity -> -1.000000000000000000000000000000003 |
|
215 dqnextt431 nexttoward -1.000000000000000000000000000000003 -Infinity -> -1.000000000000000000000000000000004 |
|
216 dqnextt432 nexttoward -1.000000000000000000000000000000004 -Infinity -> -1.000000000000000000000000000000005 |
|
217 dqnextt433 nexttoward -1.000000000000000000000000000000005 -Infinity -> -1.000000000000000000000000000000006 |
|
218 dqnextt434 nexttoward -1.000000000000000000000000000000006 -Infinity -> -1.000000000000000000000000000000007 |
|
219 dqnextt435 nexttoward -1.000000000000000000000000000000007 -Infinity -> -1.000000000000000000000000000000008 |
|
220 dqnextt436 nexttoward -1.000000000000000000000000000000008 -Infinity -> -1.000000000000000000000000000000009 |
|
221 dqnextt437 nexttoward -1.000000000000000000000000000000009 -Infinity -> -1.000000000000000000000000000000010 |
|
222 dqnextt438 nexttoward -1.000000000000000000000000000000010 -Infinity -> -1.000000000000000000000000000000011 |
|
223 dqnextt439 nexttoward -1.000000000000000000000000000000011 -Infinity -> -1.000000000000000000000000000000012 |
|
224 |
|
225 -- Zeros |
|
226 dqnextt500 nexttoward -0 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded |
|
227 dqnextt501 nexttoward 0 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded |
|
228 dqnextt502 nexttoward 0.00 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded |
|
229 dqnextt503 nexttoward -0.00 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded |
|
230 dqnextt504 nexttoward 0E-300 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded |
|
231 dqnextt505 nexttoward 0E+300 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded |
|
232 dqnextt506 nexttoward 0E+30000 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded |
|
233 dqnextt507 nexttoward -0E+30000 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded |
|
234 |
|
235 -- specials |
|
236 dqnextt550 nexttoward Inf -Infinity -> 9.999999999999999999999999999999999E+6144 |
|
237 dqnextt551 nexttoward -Inf -Infinity -> -Infinity |
|
238 dqnextt552 nexttoward NaN -Infinity -> NaN |
|
239 dqnextt553 nexttoward sNaN -Infinity -> NaN Invalid_operation |
|
240 dqnextt554 nexttoward NaN77 -Infinity -> NaN77 |
|
241 dqnextt555 nexttoward sNaN88 -Infinity -> NaN88 Invalid_operation |
|
242 dqnextt556 nexttoward -NaN -Infinity -> -NaN |
|
243 dqnextt557 nexttoward -sNaN -Infinity -> -NaN Invalid_operation |
|
244 dqnextt558 nexttoward -NaN77 -Infinity -> -NaN77 |
|
245 dqnextt559 nexttoward -sNaN88 -Infinity -> -NaN88 Invalid_operation |
|
246 |
|
247 -- Nmax, Nmin, Ntiny, subnormals |
|
248 dqnextt670 nexttoward 9.999999999999999999999999999999999E+6144 -Infinity -> 9.999999999999999999999999999999998E+6144 |
|
249 dqnextt671 nexttoward 9.999999999999999999999999999999998E+6144 -Infinity -> 9.999999999999999999999999999999997E+6144 |
|
250 dqnextt672 nexttoward 1E-6143 -Infinity -> 9.99999999999999999999999999999999E-6144 Underflow Subnormal Inexact Rounded |
|
251 dqnextt673 nexttoward 1.000000000000000000000000000000000E-6143 -Infinity -> 9.99999999999999999999999999999999E-6144 Underflow Subnormal Inexact Rounded |
|
252 dqnextt674 nexttoward 9E-6176 -Infinity -> 8E-6176 Underflow Subnormal Inexact Rounded |
|
253 dqnextt675 nexttoward 9.9E-6175 -Infinity -> 9.8E-6175 Underflow Subnormal Inexact Rounded |
|
254 dqnextt676 nexttoward 9.99999999999999999999999999999E-6147 -Infinity -> 9.99999999999999999999999999998E-6147 Underflow Subnormal Inexact Rounded |
|
255 dqnextt677 nexttoward 9.99999999999999999999999999999999E-6144 -Infinity -> 9.99999999999999999999999999999998E-6144 Underflow Subnormal Inexact Rounded |
|
256 dqnextt678 nexttoward 9.99999999999999999999999999999998E-6144 -Infinity -> 9.99999999999999999999999999999997E-6144 Underflow Subnormal Inexact Rounded |
|
257 dqnextt679 nexttoward 9.99999999999999999999999999999997E-6144 -Infinity -> 9.99999999999999999999999999999996E-6144 Underflow Subnormal Inexact Rounded |
|
258 dqnextt680 nexttoward 0E-6176 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded |
|
259 dqnextt681 nexttoward 1E-6176 -Infinity -> 0E-6176 Underflow Subnormal Inexact Rounded Clamped |
|
260 dqnextt682 nexttoward 2E-6176 -Infinity -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
261 |
|
262 dqnextt683 nexttoward -0E-6176 -Infinity -> -1E-6176 Underflow Subnormal Inexact Rounded |
|
263 dqnextt684 nexttoward -1E-6176 -Infinity -> -2E-6176 Underflow Subnormal Inexact Rounded |
|
264 dqnextt685 nexttoward -2E-6176 -Infinity -> -3E-6176 Underflow Subnormal Inexact Rounded |
|
265 dqnextt686 nexttoward -10E-6176 -Infinity -> -1.1E-6175 Underflow Subnormal Inexact Rounded |
|
266 dqnextt687 nexttoward -100E-6176 -Infinity -> -1.01E-6174 Underflow Subnormal Inexact Rounded |
|
267 dqnextt688 nexttoward -100000E-6176 -Infinity -> -1.00001E-6171 Underflow Subnormal Inexact Rounded |
|
268 dqnextt689 nexttoward -1.00000000000000000000000000000E-6143 -Infinity -> -1.000000000000000000000000000000001E-6143 |
|
269 dqnextt690 nexttoward -1.000000000000000000000000000000000E-6143 -Infinity -> -1.000000000000000000000000000000001E-6143 |
|
270 dqnextt691 nexttoward -1E-6143 -Infinity -> -1.000000000000000000000000000000001E-6143 |
|
271 dqnextt692 nexttoward -9.999999999999999999999999999999998E+6144 -Infinity -> -9.999999999999999999999999999999999E+6144 |
|
272 dqnextt693 nexttoward -9.999999999999999999999999999999999E+6144 -Infinity -> -Infinity Overflow Inexact Rounded |
|
273 |
|
274 ------- Specials |
|
275 dqnextt780 nexttoward -Inf -Inf -> -Infinity |
|
276 dqnextt781 nexttoward -Inf -1000 -> -9.999999999999999999999999999999999E+6144 |
|
277 dqnextt782 nexttoward -Inf -1 -> -9.999999999999999999999999999999999E+6144 |
|
278 dqnextt783 nexttoward -Inf -0 -> -9.999999999999999999999999999999999E+6144 |
|
279 dqnextt784 nexttoward -Inf 0 -> -9.999999999999999999999999999999999E+6144 |
|
280 dqnextt785 nexttoward -Inf 1 -> -9.999999999999999999999999999999999E+6144 |
|
281 dqnextt786 nexttoward -Inf 1000 -> -9.999999999999999999999999999999999E+6144 |
|
282 dqnextt787 nexttoward -1000 -Inf -> -1000.000000000000000000000000000001 |
|
283 dqnextt788 nexttoward -Inf -Inf -> -Infinity |
|
284 dqnextt789 nexttoward -1 -Inf -> -1.000000000000000000000000000000001 |
|
285 dqnextt790 nexttoward -0 -Inf -> -1E-6176 Underflow Subnormal Inexact Rounded |
|
286 dqnextt791 nexttoward 0 -Inf -> -1E-6176 Underflow Subnormal Inexact Rounded |
|
287 dqnextt792 nexttoward 1 -Inf -> 0.9999999999999999999999999999999999 |
|
288 dqnextt793 nexttoward 1000 -Inf -> 999.9999999999999999999999999999999 |
|
289 dqnextt794 nexttoward Inf -Inf -> 9.999999999999999999999999999999999E+6144 |
|
290 |
|
291 dqnextt800 nexttoward Inf -Inf -> 9.999999999999999999999999999999999E+6144 |
|
292 dqnextt801 nexttoward Inf -1000 -> 9.999999999999999999999999999999999E+6144 |
|
293 dqnextt802 nexttoward Inf -1 -> 9.999999999999999999999999999999999E+6144 |
|
294 dqnextt803 nexttoward Inf -0 -> 9.999999999999999999999999999999999E+6144 |
|
295 dqnextt804 nexttoward Inf 0 -> 9.999999999999999999999999999999999E+6144 |
|
296 dqnextt805 nexttoward Inf 1 -> 9.999999999999999999999999999999999E+6144 |
|
297 dqnextt806 nexttoward Inf 1000 -> 9.999999999999999999999999999999999E+6144 |
|
298 dqnextt807 nexttoward Inf Inf -> Infinity |
|
299 dqnextt808 nexttoward -1000 Inf -> -999.9999999999999999999999999999999 |
|
300 dqnextt809 nexttoward -Inf Inf -> -9.999999999999999999999999999999999E+6144 |
|
301 dqnextt810 nexttoward -1 Inf -> -0.9999999999999999999999999999999999 |
|
302 dqnextt811 nexttoward -0 Inf -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
303 dqnextt812 nexttoward 0 Inf -> 1E-6176 Underflow Subnormal Inexact Rounded |
|
304 dqnextt813 nexttoward 1 Inf -> 1.000000000000000000000000000000001 |
|
305 dqnextt814 nexttoward 1000 Inf -> 1000.000000000000000000000000000001 |
|
306 dqnextt815 nexttoward Inf Inf -> Infinity |
|
307 |
|
308 dqnextt821 nexttoward NaN -Inf -> NaN |
|
309 dqnextt822 nexttoward NaN -1000 -> NaN |
|
310 dqnextt823 nexttoward NaN -1 -> NaN |
|
311 dqnextt824 nexttoward NaN -0 -> NaN |
|
312 dqnextt825 nexttoward NaN 0 -> NaN |
|
313 dqnextt826 nexttoward NaN 1 -> NaN |
|
314 dqnextt827 nexttoward NaN 1000 -> NaN |
|
315 dqnextt828 nexttoward NaN Inf -> NaN |
|
316 dqnextt829 nexttoward NaN NaN -> NaN |
|
317 dqnextt830 nexttoward -Inf NaN -> NaN |
|
318 dqnextt831 nexttoward -1000 NaN -> NaN |
|
319 dqnextt832 nexttoward -1 NaN -> NaN |
|
320 dqnextt833 nexttoward -0 NaN -> NaN |
|
321 dqnextt834 nexttoward 0 NaN -> NaN |
|
322 dqnextt835 nexttoward 1 NaN -> NaN |
|
323 dqnextt836 nexttoward 1000 NaN -> NaN |
|
324 dqnextt837 nexttoward Inf NaN -> NaN |
|
325 |
|
326 dqnextt841 nexttoward sNaN -Inf -> NaN Invalid_operation |
|
327 dqnextt842 nexttoward sNaN -1000 -> NaN Invalid_operation |
|
328 dqnextt843 nexttoward sNaN -1 -> NaN Invalid_operation |
|
329 dqnextt844 nexttoward sNaN -0 -> NaN Invalid_operation |
|
330 dqnextt845 nexttoward sNaN 0 -> NaN Invalid_operation |
|
331 dqnextt846 nexttoward sNaN 1 -> NaN Invalid_operation |
|
332 dqnextt847 nexttoward sNaN 1000 -> NaN Invalid_operation |
|
333 dqnextt848 nexttoward sNaN NaN -> NaN Invalid_operation |
|
334 dqnextt849 nexttoward sNaN sNaN -> NaN Invalid_operation |
|
335 dqnextt850 nexttoward NaN sNaN -> NaN Invalid_operation |
|
336 dqnextt851 nexttoward -Inf sNaN -> NaN Invalid_operation |
|
337 dqnextt852 nexttoward -1000 sNaN -> NaN Invalid_operation |
|
338 dqnextt853 nexttoward -1 sNaN -> NaN Invalid_operation |
|
339 dqnextt854 nexttoward -0 sNaN -> NaN Invalid_operation |
|
340 dqnextt855 nexttoward 0 sNaN -> NaN Invalid_operation |
|
341 dqnextt856 nexttoward 1 sNaN -> NaN Invalid_operation |
|
342 dqnextt857 nexttoward 1000 sNaN -> NaN Invalid_operation |
|
343 dqnextt858 nexttoward Inf sNaN -> NaN Invalid_operation |
|
344 dqnextt859 nexttoward NaN sNaN -> NaN Invalid_operation |
|
345 |
|
346 -- propagating NaNs |
|
347 dqnextt861 nexttoward NaN1 -Inf -> NaN1 |
|
348 dqnextt862 nexttoward +NaN2 -1000 -> NaN2 |
|
349 dqnextt863 nexttoward NaN3 1000 -> NaN3 |
|
350 dqnextt864 nexttoward NaN4 Inf -> NaN4 |
|
351 dqnextt865 nexttoward NaN5 +NaN6 -> NaN5 |
|
352 dqnextt866 nexttoward -Inf NaN7 -> NaN7 |
|
353 dqnextt867 nexttoward -1000 NaN8 -> NaN8 |
|
354 dqnextt868 nexttoward 1000 NaN9 -> NaN9 |
|
355 dqnextt869 nexttoward Inf +NaN10 -> NaN10 |
|
356 dqnextt871 nexttoward sNaN11 -Inf -> NaN11 Invalid_operation |
|
357 dqnextt872 nexttoward sNaN12 -1000 -> NaN12 Invalid_operation |
|
358 dqnextt873 nexttoward sNaN13 1000 -> NaN13 Invalid_operation |
|
359 dqnextt874 nexttoward sNaN14 NaN17 -> NaN14 Invalid_operation |
|
360 dqnextt875 nexttoward sNaN15 sNaN18 -> NaN15 Invalid_operation |
|
361 dqnextt876 nexttoward NaN16 sNaN19 -> NaN19 Invalid_operation |
|
362 dqnextt877 nexttoward -Inf +sNaN20 -> NaN20 Invalid_operation |
|
363 dqnextt878 nexttoward -1000 sNaN21 -> NaN21 Invalid_operation |
|
364 dqnextt879 nexttoward 1000 sNaN22 -> NaN22 Invalid_operation |
|
365 dqnextt880 nexttoward Inf sNaN23 -> NaN23 Invalid_operation |
|
366 dqnextt881 nexttoward +NaN25 +sNaN24 -> NaN24 Invalid_operation |
|
367 dqnextt882 nexttoward -NaN26 NaN28 -> -NaN26 |
|
368 dqnextt883 nexttoward -sNaN27 sNaN29 -> -NaN27 Invalid_operation |
|
369 dqnextt884 nexttoward 1000 -NaN30 -> -NaN30 |
|
370 dqnextt885 nexttoward 1000 -sNaN31 -> -NaN31 Invalid_operation |
|
371 |
|
372 -- Null tests |
|
373 dqnextt900 nexttoward 1 # -> NaN Invalid_operation |
|
374 dqnextt901 nexttoward # 1 -> NaN Invalid_operation |
|
375 |