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