dqNextToward.decTest 29 KB

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