maxmag.decTest 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. ------------------------------------------------------------------------
  2. -- maxmag.decTest -- decimal maximum by magnitude --
  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. -- we assume that base comparison is tested in compare.decTest, so
  22. -- these mainly cover special cases and rounding
  23. extended: 1
  24. precision: 9
  25. rounding: half_up
  26. maxExponent: 384
  27. minexponent: -383
  28. -- sanity checks
  29. mxgx001 maxmag -2 -2 -> -2
  30. mxgx002 maxmag -2 -1 -> -2
  31. mxgx003 maxmag -2 0 -> -2
  32. mxgx004 maxmag -2 1 -> -2
  33. mxgx005 maxmag -2 2 -> 2
  34. mxgx006 maxmag -1 -2 -> -2
  35. mxgx007 maxmag -1 -1 -> -1
  36. mxgx008 maxmag -1 0 -> -1
  37. mxgx009 maxmag -1 1 -> 1
  38. mxgx010 maxmag -1 2 -> 2
  39. mxgx011 maxmag 0 -2 -> -2
  40. mxgx012 maxmag 0 -1 -> -1
  41. mxgx013 maxmag 0 0 -> 0
  42. mxgx014 maxmag 0 1 -> 1
  43. mxgx015 maxmag 0 2 -> 2
  44. mxgx016 maxmag 1 -2 -> -2
  45. mxgx017 maxmag 1 -1 -> 1
  46. mxgx018 maxmag 1 0 -> 1
  47. mxgx019 maxmag 1 1 -> 1
  48. mxgx020 maxmag 1 2 -> 2
  49. mxgx021 maxmag 2 -2 -> 2
  50. mxgx022 maxmag 2 -1 -> 2
  51. mxgx023 maxmag 2 0 -> 2
  52. mxgx025 maxmag 2 1 -> 2
  53. mxgx026 maxmag 2 2 -> 2
  54. -- extended zeros
  55. mxgx030 maxmag 0 0 -> 0
  56. mxgx031 maxmag 0 -0 -> 0
  57. mxgx032 maxmag 0 -0.0 -> 0
  58. mxgx033 maxmag 0 0.0 -> 0
  59. mxgx034 maxmag -0 0 -> 0 -- note: -0 = 0, but 0 chosen
  60. mxgx035 maxmag -0 -0 -> -0
  61. mxgx036 maxmag -0 -0.0 -> -0.0
  62. mxgx037 maxmag -0 0.0 -> 0.0
  63. mxgx038 maxmag 0.0 0 -> 0
  64. mxgx039 maxmag 0.0 -0 -> 0.0
  65. mxgx040 maxmag 0.0 -0.0 -> 0.0
  66. mxgx041 maxmag 0.0 0.0 -> 0.0
  67. mxgx042 maxmag -0.0 0 -> 0
  68. mxgx043 maxmag -0.0 -0 -> -0.0
  69. mxgx044 maxmag -0.0 -0.0 -> -0.0
  70. mxgx045 maxmag -0.0 0.0 -> 0.0
  71. mxgx050 maxmag -0E1 0E1 -> 0E+1
  72. mxgx051 maxmag -0E2 0E2 -> 0E+2
  73. mxgx052 maxmag -0E2 0E1 -> 0E+1
  74. mxgx053 maxmag -0E1 0E2 -> 0E+2
  75. mxgx054 maxmag 0E1 -0E1 -> 0E+1
  76. mxgx055 maxmag 0E2 -0E2 -> 0E+2
  77. mxgx056 maxmag 0E2 -0E1 -> 0E+2
  78. mxgx057 maxmag 0E1 -0E2 -> 0E+1
  79. mxgx058 maxmag 0E1 0E1 -> 0E+1
  80. mxgx059 maxmag 0E2 0E2 -> 0E+2
  81. mxgx060 maxmag 0E2 0E1 -> 0E+2
  82. mxgx061 maxmag 0E1 0E2 -> 0E+2
  83. mxgx062 maxmag -0E1 -0E1 -> -0E+1
  84. mxgx063 maxmag -0E2 -0E2 -> -0E+2
  85. mxgx064 maxmag -0E2 -0E1 -> -0E+1
  86. mxgx065 maxmag -0E1 -0E2 -> -0E+1
  87. -- Specials
  88. precision: 9
  89. mxgx090 maxmag Inf -Inf -> Infinity
  90. mxgx091 maxmag Inf -1000 -> Infinity
  91. mxgx092 maxmag Inf -1 -> Infinity
  92. mxgx093 maxmag Inf -0 -> Infinity
  93. mxgx094 maxmag Inf 0 -> Infinity
  94. mxgx095 maxmag Inf 1 -> Infinity
  95. mxgx096 maxmag Inf 1000 -> Infinity
  96. mxgx097 maxmag Inf Inf -> Infinity
  97. mxgx098 maxmag -1000 Inf -> Infinity
  98. mxgx099 maxmag -Inf Inf -> Infinity
  99. mxgx100 maxmag -1 Inf -> Infinity
  100. mxgx101 maxmag -0 Inf -> Infinity
  101. mxgx102 maxmag 0 Inf -> Infinity
  102. mxgx103 maxmag 1 Inf -> Infinity
  103. mxgx104 maxmag 1000 Inf -> Infinity
  104. mxgx105 maxmag Inf Inf -> Infinity
  105. mxgx120 maxmag -Inf -Inf -> -Infinity
  106. mxgx121 maxmag -Inf -1000 -> -Infinity
  107. mxgx122 maxmag -Inf -1 -> -Infinity
  108. mxgx123 maxmag -Inf -0 -> -Infinity
  109. mxgx124 maxmag -Inf 0 -> -Infinity
  110. mxgx125 maxmag -Inf 1 -> -Infinity
  111. mxgx126 maxmag -Inf 1000 -> -Infinity
  112. mxgx127 maxmag -Inf Inf -> Infinity
  113. mxgx128 maxmag -Inf -Inf -> -Infinity
  114. mxgx129 maxmag -1000 -Inf -> -Infinity
  115. mxgx130 maxmag -1 -Inf -> -Infinity
  116. mxgx131 maxmag -0 -Inf -> -Infinity
  117. mxgx132 maxmag 0 -Inf -> -Infinity
  118. mxgx133 maxmag 1 -Inf -> -Infinity
  119. mxgx134 maxmag 1000 -Inf -> -Infinity
  120. mxgx135 maxmag Inf -Inf -> Infinity
  121. -- 2004.08.02 754r chooses number over NaN in mixed cases
  122. mxgx141 maxmag NaN -Inf -> -Infinity
  123. mxgx142 maxmag NaN -1000 -> -1000
  124. mxgx143 maxmag NaN -1 -> -1
  125. mxgx144 maxmag NaN -0 -> -0
  126. mxgx145 maxmag NaN 0 -> 0
  127. mxgx146 maxmag NaN 1 -> 1
  128. mxgx147 maxmag NaN 1000 -> 1000
  129. mxgx148 maxmag NaN Inf -> Infinity
  130. mxgx149 maxmag NaN NaN -> NaN
  131. mxgx150 maxmag -Inf NaN -> -Infinity
  132. mxgx151 maxmag -1000 NaN -> -1000
  133. mxgx152 maxmag -1 NaN -> -1
  134. mxgx153 maxmag -0 NaN -> -0
  135. mxgx154 maxmag 0 NaN -> 0
  136. mxgx155 maxmag 1 NaN -> 1
  137. mxgx156 maxmag 1000 NaN -> 1000
  138. mxgx157 maxmag Inf NaN -> Infinity
  139. mxgx161 maxmag sNaN -Inf -> NaN Invalid_operation
  140. mxgx162 maxmag sNaN -1000 -> NaN Invalid_operation
  141. mxgx163 maxmag sNaN -1 -> NaN Invalid_operation
  142. mxgx164 maxmag sNaN -0 -> NaN Invalid_operation
  143. mxgx165 maxmag sNaN 0 -> NaN Invalid_operation
  144. mxgx166 maxmag sNaN 1 -> NaN Invalid_operation
  145. mxgx167 maxmag sNaN 1000 -> NaN Invalid_operation
  146. mxgx168 maxmag sNaN NaN -> NaN Invalid_operation
  147. mxgx169 maxmag sNaN sNaN -> NaN Invalid_operation
  148. mxgx170 maxmag NaN sNaN -> NaN Invalid_operation
  149. mxgx171 maxmag -Inf sNaN -> NaN Invalid_operation
  150. mxgx172 maxmag -1000 sNaN -> NaN Invalid_operation
  151. mxgx173 maxmag -1 sNaN -> NaN Invalid_operation
  152. mxgx174 maxmag -0 sNaN -> NaN Invalid_operation
  153. mxgx175 maxmag 0 sNaN -> NaN Invalid_operation
  154. mxgx176 maxmag 1 sNaN -> NaN Invalid_operation
  155. mxgx177 maxmag 1000 sNaN -> NaN Invalid_operation
  156. mxgx178 maxmag Inf sNaN -> NaN Invalid_operation
  157. mxgx179 maxmag NaN sNaN -> NaN Invalid_operation
  158. -- propagating NaNs
  159. mxgx181 maxmag NaN9 -Inf -> -Infinity
  160. mxgx182 maxmag NaN8 9 -> 9
  161. mxgx183 maxmag -NaN7 Inf -> Infinity
  162. mxgx184 maxmag -NaN1 NaN11 -> -NaN1
  163. mxgx185 maxmag NaN2 NaN12 -> NaN2
  164. mxgx186 maxmag -NaN13 -NaN7 -> -NaN13
  165. mxgx187 maxmag NaN14 -NaN5 -> NaN14
  166. mxgx188 maxmag -Inf NaN4 -> -Infinity
  167. mxgx189 maxmag -9 -NaN3 -> -9
  168. mxgx190 maxmag Inf NaN2 -> Infinity
  169. mxgx191 maxmag sNaN99 -Inf -> NaN99 Invalid_operation
  170. mxgx192 maxmag sNaN98 -1 -> NaN98 Invalid_operation
  171. mxgx193 maxmag -sNaN97 NaN -> -NaN97 Invalid_operation
  172. mxgx194 maxmag sNaN96 sNaN94 -> NaN96 Invalid_operation
  173. mxgx195 maxmag NaN95 sNaN93 -> NaN93 Invalid_operation
  174. mxgx196 maxmag -Inf sNaN92 -> NaN92 Invalid_operation
  175. mxgx197 maxmag 0 sNaN91 -> NaN91 Invalid_operation
  176. mxgx198 maxmag Inf -sNaN90 -> -NaN90 Invalid_operation
  177. mxgx199 maxmag NaN sNaN89 -> NaN89 Invalid_operation
  178. -- rounding checks
  179. maxexponent: 999
  180. minexponent: -999
  181. precision: 9
  182. mxgx201 maxmag 12345678000 1 -> 1.23456780E+10 Rounded
  183. mxgx202 maxmag 1 12345678000 -> 1.23456780E+10 Rounded
  184. mxgx203 maxmag 1234567800 1 -> 1.23456780E+9 Rounded
  185. mxgx204 maxmag 1 1234567800 -> 1.23456780E+9 Rounded
  186. mxgx205 maxmag 1234567890 1 -> 1.23456789E+9 Rounded
  187. mxgx206 maxmag 1 1234567890 -> 1.23456789E+9 Rounded
  188. mxgx207 maxmag 1234567891 1 -> 1.23456789E+9 Inexact Rounded
  189. mxgx208 maxmag 1 1234567891 -> 1.23456789E+9 Inexact Rounded
  190. mxgx209 maxmag 12345678901 1 -> 1.23456789E+10 Inexact Rounded
  191. mxgx210 maxmag 1 12345678901 -> 1.23456789E+10 Inexact Rounded
  192. mxgx211 maxmag 1234567896 1 -> 1.23456790E+9 Inexact Rounded
  193. mxgx212 maxmag 1 1234567896 -> 1.23456790E+9 Inexact Rounded
  194. mxgx213 maxmag -1234567891 1 -> -1.23456789E+9 Inexact Rounded
  195. mxgx214 maxmag 1 -1234567891 -> -1.23456789E+9 Inexact Rounded
  196. mxgx215 maxmag -12345678901 1 -> -1.23456789E+10 Inexact Rounded
  197. mxgx216 maxmag 1 -12345678901 -> -1.23456789E+10 Inexact Rounded
  198. mxgx217 maxmag -1234567896 1 -> -1.23456790E+9 Inexact Rounded
  199. mxgx218 maxmag 1 -1234567896 -> -1.23456790E+9 Inexact Rounded
  200. precision: 15
  201. mxgx221 maxmag 12345678000 1 -> 12345678000
  202. mxgx222 maxmag 1 12345678000 -> 12345678000
  203. mxgx223 maxmag 1234567800 1 -> 1234567800
  204. mxgx224 maxmag 1 1234567800 -> 1234567800
  205. mxgx225 maxmag 1234567890 1 -> 1234567890
  206. mxgx226 maxmag 1 1234567890 -> 1234567890
  207. mxgx227 maxmag 1234567891 1 -> 1234567891
  208. mxgx228 maxmag 1 1234567891 -> 1234567891
  209. mxgx229 maxmag 12345678901 1 -> 12345678901
  210. mxgx230 maxmag 1 12345678901 -> 12345678901
  211. mxgx231 maxmag 1234567896 1 -> 1234567896
  212. mxgx232 maxmag 1 1234567896 -> 1234567896
  213. mxgx233 maxmag -1234567891 1 -> -1234567891
  214. mxgx234 maxmag 1 -1234567891 -> -1234567891
  215. mxgx235 maxmag -12345678901 1 -> -12345678901
  216. mxgx236 maxmag 1 -12345678901 -> -12345678901
  217. mxgx237 maxmag -1234567896 1 -> -1234567896
  218. mxgx238 maxmag 1 -1234567896 -> -1234567896
  219. -- from examples
  220. mxgx280 maxmag '3' '2' -> '3'
  221. mxgx281 maxmag '-10' '3' -> '-10'
  222. mxgx282 maxmag '1.0' '1' -> '1'
  223. mxgx283 maxmag '1' '1.0' -> '1'
  224. mxgx284 maxmag '7' 'NaN' -> '7'
  225. -- overflow and underflow tests ...
  226. maxExponent: 999999999
  227. minexponent: -999999999
  228. mxgx330 maxmag +1.23456789012345E-0 9E+999999999 -> 9E+999999999
  229. mxgx331 maxmag 9E+999999999 +1.23456789012345E-0 -> 9E+999999999
  230. mxgx332 maxmag +0.100 9E-999999999 -> 0.100
  231. mxgx333 maxmag 9E-999999999 +0.100 -> 0.100
  232. mxgx335 maxmag -1.23456789012345E-0 9E+999999999 -> 9E+999999999
  233. mxgx336 maxmag 9E+999999999 -1.23456789012345E-0 -> 9E+999999999
  234. mxgx337 maxmag -0.100 9E-999999999 -> -0.100
  235. mxgx338 maxmag 9E-999999999 -0.100 -> -0.100
  236. mxgx339 maxmag 1e-599999999 1e-400000001 -> 1E-400000001
  237. mxgx340 maxmag 1e-599999999 1e-400000000 -> 1E-400000000
  238. mxgx341 maxmag 1e-600000000 1e-400000000 -> 1E-400000000
  239. mxgx342 maxmag 9e-999999998 0.01 -> 0.01
  240. mxgx343 maxmag 9e-999999998 0.1 -> 0.1
  241. mxgx344 maxmag 0.01 9e-999999998 -> 0.01
  242. mxgx345 maxmag 1e599999999 1e400000001 -> 1E+599999999
  243. mxgx346 maxmag 1e599999999 1e400000000 -> 1E+599999999
  244. mxgx347 maxmag 1e600000000 1e400000000 -> 1E+600000000
  245. mxgx348 maxmag 9e999999998 100 -> 9E+999999998
  246. mxgx349 maxmag 9e999999998 10 -> 9E+999999998
  247. mxgx350 maxmag 100 9e999999998 -> 9E+999999998
  248. -- signs
  249. mxgx351 maxmag 1e+777777777 1e+411111111 -> 1E+777777777
  250. mxgx352 maxmag 1e+777777777 -1e+411111111 -> 1E+777777777
  251. mxgx353 maxmag -1e+777777777 1e+411111111 -> -1E+777777777
  252. mxgx354 maxmag -1e+777777777 -1e+411111111 -> -1E+777777777
  253. mxgx355 maxmag 1e-777777777 1e-411111111 -> 1E-411111111
  254. mxgx356 maxmag 1e-777777777 -1e-411111111 -> -1E-411111111
  255. mxgx357 maxmag -1e-777777777 1e-411111111 -> 1E-411111111
  256. mxgx358 maxmag -1e-777777777 -1e-411111111 -> -1E-411111111
  257. -- expanded list from min/max 754r purple prose
  258. -- [explicit tests for exponent ordering]
  259. mxgx401 maxmag Inf 1.1 -> Infinity
  260. mxgx402 maxmag 1.1 1 -> 1.1
  261. mxgx403 maxmag 1 1.0 -> 1
  262. mxgx404 maxmag 1.0 0.1 -> 1.0
  263. mxgx405 maxmag 0.1 0.10 -> 0.1
  264. mxgx406 maxmag 0.10 0.100 -> 0.10
  265. mxgx407 maxmag 0.10 0 -> 0.10
  266. mxgx408 maxmag 0 0.0 -> 0
  267. mxgx409 maxmag 0.0 -0 -> 0.0
  268. mxgx410 maxmag 0.0 -0.0 -> 0.0
  269. mxgx411 maxmag 0.00 -0.0 -> 0.00
  270. mxgx412 maxmag 0.0 -0.00 -> 0.0
  271. mxgx413 maxmag 0 -0.0 -> 0
  272. mxgx414 maxmag 0 -0 -> 0
  273. mxgx415 maxmag -0.0 -0 -> -0.0
  274. mxgx416 maxmag -0 -0.100 -> -0.100
  275. mxgx417 maxmag -0.100 -0.10 -> -0.100
  276. mxgx418 maxmag -0.10 -0.1 -> -0.10
  277. mxgx419 maxmag -0.1 -1.0 -> -1.0
  278. mxgx420 maxmag -1.0 -1 -> -1.0
  279. mxgx421 maxmag -1 -1.1 -> -1.1
  280. mxgx423 maxmag -1.1 -Inf -> -Infinity
  281. -- same with operands reversed
  282. mxgx431 maxmag 1.1 Inf -> Infinity
  283. mxgx432 maxmag 1 1.1 -> 1.1
  284. mxgx433 maxmag 1.0 1 -> 1
  285. mxgx434 maxmag 0.1 1.0 -> 1.0
  286. mxgx435 maxmag 0.10 0.1 -> 0.1
  287. mxgx436 maxmag 0.100 0.10 -> 0.10
  288. mxgx437 maxmag 0 0.10 -> 0.10
  289. mxgx438 maxmag 0.0 0 -> 0
  290. mxgx439 maxmag -0 0.0 -> 0.0
  291. mxgx440 maxmag -0.0 0.0 -> 0.0
  292. mxgx441 maxmag -0.0 0.00 -> 0.00
  293. mxgx442 maxmag -0.00 0.0 -> 0.0
  294. mxgx443 maxmag -0.0 0 -> 0
  295. mxgx444 maxmag -0 0 -> 0
  296. mxgx445 maxmag -0 -0.0 -> -0.0
  297. mxgx446 maxmag -0.100 -0 -> -0.100
  298. mxgx447 maxmag -0.10 -0.100 -> -0.100
  299. mxgx448 maxmag -0.1 -0.10 -> -0.10
  300. mxgx449 maxmag -1.0 -0.1 -> -1.0
  301. mxgx450 maxmag -1 -1.0 -> -1.0
  302. mxgx451 maxmag -1.1 -1 -> -1.1
  303. mxgx453 maxmag -Inf -1.1 -> -Infinity
  304. -- largies
  305. mxgx460 maxmag 1000 1E+3 -> 1E+3
  306. mxgx461 maxmag 1E+3 1000 -> 1E+3
  307. mxgx462 maxmag 1000 -1E+3 -> 1000
  308. mxgx463 maxmag 1E+3 -1000 -> 1E+3
  309. mxgx464 maxmag -1000 1E+3 -> 1E+3
  310. mxgx465 maxmag -1E+3 1000 -> 1000
  311. mxgx466 maxmag -1000 -1E+3 -> -1000
  312. mxgx467 maxmag -1E+3 -1000 -> -1000
  313. -- rounding (results treated as though plus)
  314. maxexponent: 999999999
  315. minexponent: -999999999
  316. precision: 3
  317. mxgx470 maxmag 1 .5 -> 1
  318. mxgx471 maxmag 10 5 -> 10
  319. mxgx472 maxmag 100 50 -> 100
  320. mxgx473 maxmag 1000 500 -> 1.00E+3 Rounded
  321. mxgx474 maxmag 10000 5000 -> 1.00E+4 Rounded
  322. mxgx475 maxmag 6 .5 -> 6
  323. mxgx476 maxmag 66 5 -> 66
  324. mxgx477 maxmag 666 50 -> 666
  325. mxgx478 maxmag 6666 500 -> 6.67E+3 Rounded Inexact
  326. mxgx479 maxmag 66666 5000 -> 6.67E+4 Rounded Inexact
  327. mxgx480 maxmag 33333 5000 -> 3.33E+4 Rounded Inexact
  328. mxgx481 maxmag .5 1 -> 1
  329. mxgx482 maxmag .5 10 -> 10
  330. mxgx483 maxmag .5 100 -> 100
  331. mxgx484 maxmag .5 1000 -> 1.00E+3 Rounded
  332. mxgx485 maxmag .5 10000 -> 1.00E+4 Rounded
  333. mxgx486 maxmag .5 6 -> 6
  334. mxgx487 maxmag .5 66 -> 66
  335. mxgx488 maxmag .5 666 -> 666
  336. mxgx489 maxmag .5 6666 -> 6.67E+3 Rounded Inexact
  337. mxgx490 maxmag .5 66666 -> 6.67E+4 Rounded Inexact
  338. mxgx491 maxmag .5 33333 -> 3.33E+4 Rounded Inexact
  339. -- overflow tests
  340. maxexponent: 999999999
  341. minexponent: -999999999
  342. precision: 3
  343. mxgx500 maxmag 9.999E+999999999 0 -> Infinity Inexact Overflow Rounded
  344. mxgx501 maxmag -9.999E+999999999 0 -> -Infinity Inexact Overflow Rounded
  345. -- subnormals and underflow
  346. precision: 3
  347. maxexponent: 999
  348. minexponent: -999
  349. mxgx510 maxmag 1.00E-999 0 -> 1.00E-999
  350. mxgx511 maxmag 0.1E-999 0 -> 1E-1000 Subnormal
  351. mxgx512 maxmag 0.10E-999 0 -> 1.0E-1000 Subnormal
  352. mxgx513 maxmag 0.100E-999 0 -> 1.0E-1000 Subnormal Rounded
  353. mxgx514 maxmag 0.01E-999 0 -> 1E-1001 Subnormal
  354. -- next is rounded to Nmin
  355. mxgx515 maxmag 0.999E-999 0 -> 1.00E-999 Inexact Rounded Subnormal Underflow
  356. mxgx516 maxmag 0.099E-999 0 -> 1.0E-1000 Inexact Rounded Subnormal Underflow
  357. mxgx517 maxmag 0.009E-999 0 -> 1E-1001 Inexact Rounded Subnormal Underflow
  358. mxgx518 maxmag 0.001E-999 0 -> 0E-1001 Inexact Rounded Subnormal Underflow Clamped
  359. mxgx519 maxmag 0.0009E-999 0 -> 0E-1001 Inexact Rounded Subnormal Underflow Clamped
  360. mxgx520 maxmag 0.0001E-999 0 -> 0E-1001 Inexact Rounded Subnormal Underflow Clamped
  361. mxgx530 maxmag -1.00E-999 0 -> -1.00E-999
  362. mxgx531 maxmag -0.1E-999 0 -> -1E-1000 Subnormal
  363. mxgx532 maxmag -0.10E-999 0 -> -1.0E-1000 Subnormal
  364. mxgx533 maxmag -0.100E-999 0 -> -1.0E-1000 Subnormal Rounded
  365. mxgx534 maxmag -0.01E-999 0 -> -1E-1001 Subnormal
  366. -- next is rounded to -Nmin
  367. mxgx535 maxmag -0.999E-999 0 -> -1.00E-999 Inexact Rounded Subnormal Underflow
  368. mxgx536 maxmag -0.099E-999 0 -> -1.0E-1000 Inexact Rounded Subnormal Underflow
  369. mxgx537 maxmag -0.009E-999 0 -> -1E-1001 Inexact Rounded Subnormal Underflow
  370. mxgx538 maxmag -0.001E-999 0 -> -0E-1001 Inexact Rounded Subnormal Underflow Clamped
  371. mxgx539 maxmag -0.0009E-999 0 -> -0E-1001 Inexact Rounded Subnormal Underflow Clamped
  372. mxgx540 maxmag -0.0001E-999 0 -> -0E-1001 Inexact Rounded Subnormal Underflow Clamped
  373. -- Null tests
  374. mxgx900 maxmag 10 # -> NaN Invalid_operation
  375. mxgx901 maxmag # 10 -> NaN Invalid_operation