dqCompareTotal.decTest 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  1. ------------------------------------------------------------------------
  2. -- dqCompareTotal.decTest -- decQuad comparison using total ordering --
  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. -- Note that we cannot assume add/subtract tests cover paths adequately,
  22. -- here, because the code might be quite different (comparison cannot
  23. -- overflow or underflow, so actual subtractions are not necessary).
  24. -- Similarly, comparetotal will have some radically different paths
  25. -- than compare.
  26. -- All operands and results are decQuads.
  27. extended: 1
  28. clamp: 1
  29. precision: 34
  30. maxExponent: 6144
  31. minExponent: -6143
  32. rounding: half_even
  33. -- sanity checks
  34. dqcot001 comparetotal -2 -2 -> 0
  35. dqcot002 comparetotal -2 -1 -> -1
  36. dqcot003 comparetotal -2 0 -> -1
  37. dqcot004 comparetotal -2 1 -> -1
  38. dqcot005 comparetotal -2 2 -> -1
  39. dqcot006 comparetotal -1 -2 -> 1
  40. dqcot007 comparetotal -1 -1 -> 0
  41. dqcot008 comparetotal -1 0 -> -1
  42. dqcot009 comparetotal -1 1 -> -1
  43. dqcot010 comparetotal -1 2 -> -1
  44. dqcot011 comparetotal 0 -2 -> 1
  45. dqcot012 comparetotal 0 -1 -> 1
  46. dqcot013 comparetotal 0 0 -> 0
  47. dqcot014 comparetotal 0 1 -> -1
  48. dqcot015 comparetotal 0 2 -> -1
  49. dqcot016 comparetotal 1 -2 -> 1
  50. dqcot017 comparetotal 1 -1 -> 1
  51. dqcot018 comparetotal 1 0 -> 1
  52. dqcot019 comparetotal 1 1 -> 0
  53. dqcot020 comparetotal 1 2 -> -1
  54. dqcot021 comparetotal 2 -2 -> 1
  55. dqcot022 comparetotal 2 -1 -> 1
  56. dqcot023 comparetotal 2 0 -> 1
  57. dqcot025 comparetotal 2 1 -> 1
  58. dqcot026 comparetotal 2 2 -> 0
  59. dqcot031 comparetotal -20 -20 -> 0
  60. dqcot032 comparetotal -20 -10 -> -1
  61. dqcot033 comparetotal -20 00 -> -1
  62. dqcot034 comparetotal -20 10 -> -1
  63. dqcot035 comparetotal -20 20 -> -1
  64. dqcot036 comparetotal -10 -20 -> 1
  65. dqcot037 comparetotal -10 -10 -> 0
  66. dqcot038 comparetotal -10 00 -> -1
  67. dqcot039 comparetotal -10 10 -> -1
  68. dqcot040 comparetotal -10 20 -> -1
  69. dqcot041 comparetotal 00 -20 -> 1
  70. dqcot042 comparetotal 00 -10 -> 1
  71. dqcot043 comparetotal 00 00 -> 0
  72. dqcot044 comparetotal 00 10 -> -1
  73. dqcot045 comparetotal 00 20 -> -1
  74. dqcot046 comparetotal 10 -20 -> 1
  75. dqcot047 comparetotal 10 -10 -> 1
  76. dqcot048 comparetotal 10 00 -> 1
  77. dqcot049 comparetotal 10 10 -> 0
  78. dqcot050 comparetotal 10 20 -> -1
  79. dqcot051 comparetotal 20 -20 -> 1
  80. dqcot052 comparetotal 20 -10 -> 1
  81. dqcot053 comparetotal 20 00 -> 1
  82. dqcot055 comparetotal 20 10 -> 1
  83. dqcot056 comparetotal 20 20 -> 0
  84. dqcot061 comparetotal -2.0 -2.0 -> 0
  85. dqcot062 comparetotal -2.0 -1.0 -> -1
  86. dqcot063 comparetotal -2.0 0.0 -> -1
  87. dqcot064 comparetotal -2.0 1.0 -> -1
  88. dqcot065 comparetotal -2.0 2.0 -> -1
  89. dqcot066 comparetotal -1.0 -2.0 -> 1
  90. dqcot067 comparetotal -1.0 -1.0 -> 0
  91. dqcot068 comparetotal -1.0 0.0 -> -1
  92. dqcot069 comparetotal -1.0 1.0 -> -1
  93. dqcot070 comparetotal -1.0 2.0 -> -1
  94. dqcot071 comparetotal 0.0 -2.0 -> 1
  95. dqcot072 comparetotal 0.0 -1.0 -> 1
  96. dqcot073 comparetotal 0.0 0.0 -> 0
  97. dqcot074 comparetotal 0.0 1.0 -> -1
  98. dqcot075 comparetotal 0.0 2.0 -> -1
  99. dqcot076 comparetotal 1.0 -2.0 -> 1
  100. dqcot077 comparetotal 1.0 -1.0 -> 1
  101. dqcot078 comparetotal 1.0 0.0 -> 1
  102. dqcot079 comparetotal 1.0 1.0 -> 0
  103. dqcot080 comparetotal 1.0 2.0 -> -1
  104. dqcot081 comparetotal 2.0 -2.0 -> 1
  105. dqcot082 comparetotal 2.0 -1.0 -> 1
  106. dqcot083 comparetotal 2.0 0.0 -> 1
  107. dqcot085 comparetotal 2.0 1.0 -> 1
  108. dqcot086 comparetotal 2.0 2.0 -> 0
  109. -- now some cases which might overflow if subtract were used
  110. dqcot090 comparetotal 9.99999999999999999999999999999E+6144 9.99999999999999999999999999999E+6144 -> 0
  111. dqcot091 comparetotal -9.99999999999999999999999999999E+6144 9.99999999999999999999999999999E+6144 -> -1
  112. dqcot092 comparetotal 9.99999999999999999999999999999E+6144 -9.99999999999999999999999999999E+6144 -> 1
  113. dqcot093 comparetotal -9.99999999999999999999999999999E+6144 -9.99999999999999999999999999999E+6144 -> 0
  114. -- some differing length/exponent cases
  115. -- in this first group, compare would compare all equal
  116. dqcot100 comparetotal 7.0 7.0 -> 0
  117. dqcot101 comparetotal 7.0 7 -> -1
  118. dqcot102 comparetotal 7 7.0 -> 1
  119. dqcot103 comparetotal 7E+0 7.0 -> 1
  120. dqcot104 comparetotal 70E-1 7.0 -> 0
  121. dqcot105 comparetotal 0.7E+1 7 -> 0
  122. dqcot106 comparetotal 70E-1 7 -> -1
  123. dqcot107 comparetotal 7.0 7E+0 -> -1
  124. dqcot108 comparetotal 7.0 70E-1 -> 0
  125. dqcot109 comparetotal 7 0.7E+1 -> 0
  126. dqcot110 comparetotal 7 70E-1 -> 1
  127. dqcot120 comparetotal 8.0 7.0 -> 1
  128. dqcot121 comparetotal 8.0 7 -> 1
  129. dqcot122 comparetotal 8 7.0 -> 1
  130. dqcot123 comparetotal 8E+0 7.0 -> 1
  131. dqcot124 comparetotal 80E-1 7.0 -> 1
  132. dqcot125 comparetotal 0.8E+1 7 -> 1
  133. dqcot126 comparetotal 80E-1 7 -> 1
  134. dqcot127 comparetotal 8.0 7E+0 -> 1
  135. dqcot128 comparetotal 8.0 70E-1 -> 1
  136. dqcot129 comparetotal 8 0.7E+1 -> 1
  137. dqcot130 comparetotal 8 70E-1 -> 1
  138. dqcot140 comparetotal 8.0 9.0 -> -1
  139. dqcot141 comparetotal 8.0 9 -> -1
  140. dqcot142 comparetotal 8 9.0 -> -1
  141. dqcot143 comparetotal 8E+0 9.0 -> -1
  142. dqcot144 comparetotal 80E-1 9.0 -> -1
  143. dqcot145 comparetotal 0.8E+1 9 -> -1
  144. dqcot146 comparetotal 80E-1 9 -> -1
  145. dqcot147 comparetotal 8.0 9E+0 -> -1
  146. dqcot148 comparetotal 8.0 90E-1 -> -1
  147. dqcot149 comparetotal 8 0.9E+1 -> -1
  148. dqcot150 comparetotal 8 90E-1 -> -1
  149. -- and again, with sign changes -+ ..
  150. dqcot200 comparetotal -7.0 7.0 -> -1
  151. dqcot201 comparetotal -7.0 7 -> -1
  152. dqcot202 comparetotal -7 7.0 -> -1
  153. dqcot203 comparetotal -7E+0 7.0 -> -1
  154. dqcot204 comparetotal -70E-1 7.0 -> -1
  155. dqcot205 comparetotal -0.7E+1 7 -> -1
  156. dqcot206 comparetotal -70E-1 7 -> -1
  157. dqcot207 comparetotal -7.0 7E+0 -> -1
  158. dqcot208 comparetotal -7.0 70E-1 -> -1
  159. dqcot209 comparetotal -7 0.7E+1 -> -1
  160. dqcot210 comparetotal -7 70E-1 -> -1
  161. dqcot220 comparetotal -8.0 7.0 -> -1
  162. dqcot221 comparetotal -8.0 7 -> -1
  163. dqcot222 comparetotal -8 7.0 -> -1
  164. dqcot223 comparetotal -8E+0 7.0 -> -1
  165. dqcot224 comparetotal -80E-1 7.0 -> -1
  166. dqcot225 comparetotal -0.8E+1 7 -> -1
  167. dqcot226 comparetotal -80E-1 7 -> -1
  168. dqcot227 comparetotal -8.0 7E+0 -> -1
  169. dqcot228 comparetotal -8.0 70E-1 -> -1
  170. dqcot229 comparetotal -8 0.7E+1 -> -1
  171. dqcot230 comparetotal -8 70E-1 -> -1
  172. dqcot240 comparetotal -8.0 9.0 -> -1
  173. dqcot241 comparetotal -8.0 9 -> -1
  174. dqcot242 comparetotal -8 9.0 -> -1
  175. dqcot243 comparetotal -8E+0 9.0 -> -1
  176. dqcot244 comparetotal -80E-1 9.0 -> -1
  177. dqcot245 comparetotal -0.8E+1 9 -> -1
  178. dqcot246 comparetotal -80E-1 9 -> -1
  179. dqcot247 comparetotal -8.0 9E+0 -> -1
  180. dqcot248 comparetotal -8.0 90E-1 -> -1
  181. dqcot249 comparetotal -8 0.9E+1 -> -1
  182. dqcot250 comparetotal -8 90E-1 -> -1
  183. -- and again, with sign changes +- ..
  184. dqcot300 comparetotal 7.0 -7.0 -> 1
  185. dqcot301 comparetotal 7.0 -7 -> 1
  186. dqcot302 comparetotal 7 -7.0 -> 1
  187. dqcot303 comparetotal 7E+0 -7.0 -> 1
  188. dqcot304 comparetotal 70E-1 -7.0 -> 1
  189. dqcot305 comparetotal .7E+1 -7 -> 1
  190. dqcot306 comparetotal 70E-1 -7 -> 1
  191. dqcot307 comparetotal 7.0 -7E+0 -> 1
  192. dqcot308 comparetotal 7.0 -70E-1 -> 1
  193. dqcot309 comparetotal 7 -.7E+1 -> 1
  194. dqcot310 comparetotal 7 -70E-1 -> 1
  195. dqcot320 comparetotal 8.0 -7.0 -> 1
  196. dqcot321 comparetotal 8.0 -7 -> 1
  197. dqcot322 comparetotal 8 -7.0 -> 1
  198. dqcot323 comparetotal 8E+0 -7.0 -> 1
  199. dqcot324 comparetotal 80E-1 -7.0 -> 1
  200. dqcot325 comparetotal .8E+1 -7 -> 1
  201. dqcot326 comparetotal 80E-1 -7 -> 1
  202. dqcot327 comparetotal 8.0 -7E+0 -> 1
  203. dqcot328 comparetotal 8.0 -70E-1 -> 1
  204. dqcot329 comparetotal 8 -.7E+1 -> 1
  205. dqcot330 comparetotal 8 -70E-1 -> 1
  206. dqcot340 comparetotal 8.0 -9.0 -> 1
  207. dqcot341 comparetotal 8.0 -9 -> 1
  208. dqcot342 comparetotal 8 -9.0 -> 1
  209. dqcot343 comparetotal 8E+0 -9.0 -> 1
  210. dqcot344 comparetotal 80E-1 -9.0 -> 1
  211. dqcot345 comparetotal .8E+1 -9 -> 1
  212. dqcot346 comparetotal 80E-1 -9 -> 1
  213. dqcot347 comparetotal 8.0 -9E+0 -> 1
  214. dqcot348 comparetotal 8.0 -90E-1 -> 1
  215. dqcot349 comparetotal 8 -.9E+1 -> 1
  216. dqcot350 comparetotal 8 -90E-1 -> 1
  217. -- and again, with sign changes -- ..
  218. dqcot400 comparetotal -7.0 -7.0 -> 0
  219. dqcot401 comparetotal -7.0 -7 -> 1
  220. dqcot402 comparetotal -7 -7.0 -> -1
  221. dqcot403 comparetotal -7E+0 -7.0 -> -1
  222. dqcot404 comparetotal -70E-1 -7.0 -> 0
  223. dqcot405 comparetotal -.7E+1 -7 -> 0
  224. dqcot406 comparetotal -70E-1 -7 -> 1
  225. dqcot407 comparetotal -7.0 -7E+0 -> 1
  226. dqcot408 comparetotal -7.0 -70E-1 -> 0
  227. dqcot409 comparetotal -7 -.7E+1 -> 0
  228. dqcot410 comparetotal -7 -70E-1 -> -1
  229. dqcot420 comparetotal -8.0 -7.0 -> -1
  230. dqcot421 comparetotal -8.0 -7 -> -1
  231. dqcot422 comparetotal -8 -7.0 -> -1
  232. dqcot423 comparetotal -8E+0 -7.0 -> -1
  233. dqcot424 comparetotal -80E-1 -7.0 -> -1
  234. dqcot425 comparetotal -.8E+1 -7 -> -1
  235. dqcot426 comparetotal -80E-1 -7 -> -1
  236. dqcot427 comparetotal -8.0 -7E+0 -> -1
  237. dqcot428 comparetotal -8.0 -70E-1 -> -1
  238. dqcot429 comparetotal -8 -.7E+1 -> -1
  239. dqcot430 comparetotal -8 -70E-1 -> -1
  240. dqcot440 comparetotal -8.0 -9.0 -> 1
  241. dqcot441 comparetotal -8.0 -9 -> 1
  242. dqcot442 comparetotal -8 -9.0 -> 1
  243. dqcot443 comparetotal -8E+0 -9.0 -> 1
  244. dqcot444 comparetotal -80E-1 -9.0 -> 1
  245. dqcot445 comparetotal -.8E+1 -9 -> 1
  246. dqcot446 comparetotal -80E-1 -9 -> 1
  247. dqcot447 comparetotal -8.0 -9E+0 -> 1
  248. dqcot448 comparetotal -8.0 -90E-1 -> 1
  249. dqcot449 comparetotal -8 -.9E+1 -> 1
  250. dqcot450 comparetotal -8 -90E-1 -> 1
  251. -- testcases that subtract to lots of zeros at boundaries [pgr]
  252. dqcot473 comparetotal 123.4560000000000E-89 123.456E-89 -> -1
  253. dqcot474 comparetotal 123.456000000000E+89 123.456E+89 -> -1
  254. dqcot475 comparetotal 123.45600000000E-89 123.456E-89 -> -1
  255. dqcot476 comparetotal 123.4560000000E+89 123.456E+89 -> -1
  256. dqcot477 comparetotal 123.456000000E-89 123.456E-89 -> -1
  257. dqcot478 comparetotal 123.45600000E+89 123.456E+89 -> -1
  258. dqcot479 comparetotal 123.4560000E-89 123.456E-89 -> -1
  259. dqcot480 comparetotal 123.456000E+89 123.456E+89 -> -1
  260. dqcot481 comparetotal 123.45600E-89 123.456E-89 -> -1
  261. dqcot482 comparetotal 123.4560E+89 123.456E+89 -> -1
  262. dqcot483 comparetotal 123.456E-89 123.456E-89 -> 0
  263. dqcot487 comparetotal 123.456E+89 123.4560000000000E+89 -> 1
  264. dqcot488 comparetotal 123.456E-89 123.456000000000E-89 -> 1
  265. dqcot489 comparetotal 123.456E+89 123.45600000000E+89 -> 1
  266. dqcot490 comparetotal 123.456E-89 123.4560000000E-89 -> 1
  267. dqcot491 comparetotal 123.456E+89 123.456000000E+89 -> 1
  268. dqcot492 comparetotal 123.456E-89 123.45600000E-89 -> 1
  269. dqcot493 comparetotal 123.456E+89 123.4560000E+89 -> 1
  270. dqcot494 comparetotal 123.456E-89 123.456000E-89 -> 1
  271. dqcot495 comparetotal 123.456E+89 123.45600E+89 -> 1
  272. dqcot496 comparetotal 123.456E-89 123.4560E-89 -> 1
  273. dqcot497 comparetotal 123.456E+89 123.456E+89 -> 0
  274. -- wide-ranging, around precision; signs equal
  275. dqcot498 comparetotal 1 1E-17 -> 1
  276. dqcot499 comparetotal 1 1E-16 -> 1
  277. dqcot500 comparetotal 1 1E-15 -> 1
  278. dqcot501 comparetotal 1 1E-14 -> 1
  279. dqcot502 comparetotal 1 1E-13 -> 1
  280. dqcot503 comparetotal 1 1E-12 -> 1
  281. dqcot504 comparetotal 1 1E-11 -> 1
  282. dqcot505 comparetotal 1 1E-10 -> 1
  283. dqcot506 comparetotal 1 1E-9 -> 1
  284. dqcot507 comparetotal 1 1E-8 -> 1
  285. dqcot508 comparetotal 1 1E-7 -> 1
  286. dqcot509 comparetotal 1 1E-6 -> 1
  287. dqcot510 comparetotal 1 1E-5 -> 1
  288. dqcot511 comparetotal 1 1E-4 -> 1
  289. dqcot512 comparetotal 1 1E-3 -> 1
  290. dqcot513 comparetotal 1 1E-2 -> 1
  291. dqcot514 comparetotal 1 1E-1 -> 1
  292. dqcot515 comparetotal 1 1E-0 -> 0
  293. dqcot516 comparetotal 1 1E+1 -> -1
  294. dqcot517 comparetotal 1 1E+2 -> -1
  295. dqcot518 comparetotal 1 1E+3 -> -1
  296. dqcot519 comparetotal 1 1E+4 -> -1
  297. dqcot521 comparetotal 1 1E+5 -> -1
  298. dqcot522 comparetotal 1 1E+6 -> -1
  299. dqcot523 comparetotal 1 1E+7 -> -1
  300. dqcot524 comparetotal 1 1E+8 -> -1
  301. dqcot525 comparetotal 1 1E+9 -> -1
  302. dqcot526 comparetotal 1 1E+10 -> -1
  303. dqcot527 comparetotal 1 1E+11 -> -1
  304. dqcot528 comparetotal 1 1E+12 -> -1
  305. dqcot529 comparetotal 1 1E+13 -> -1
  306. dqcot530 comparetotal 1 1E+14 -> -1
  307. dqcot531 comparetotal 1 1E+15 -> -1
  308. dqcot532 comparetotal 1 1E+16 -> -1
  309. dqcot533 comparetotal 1 1E+17 -> -1
  310. -- LR swap
  311. dqcot538 comparetotal 1E-17 1 -> -1
  312. dqcot539 comparetotal 1E-16 1 -> -1
  313. dqcot540 comparetotal 1E-15 1 -> -1
  314. dqcot541 comparetotal 1E-14 1 -> -1
  315. dqcot542 comparetotal 1E-13 1 -> -1
  316. dqcot543 comparetotal 1E-12 1 -> -1
  317. dqcot544 comparetotal 1E-11 1 -> -1
  318. dqcot545 comparetotal 1E-10 1 -> -1
  319. dqcot546 comparetotal 1E-9 1 -> -1
  320. dqcot547 comparetotal 1E-8 1 -> -1
  321. dqcot548 comparetotal 1E-7 1 -> -1
  322. dqcot549 comparetotal 1E-6 1 -> -1
  323. dqcot550 comparetotal 1E-5 1 -> -1
  324. dqcot551 comparetotal 1E-4 1 -> -1
  325. dqcot552 comparetotal 1E-3 1 -> -1
  326. dqcot553 comparetotal 1E-2 1 -> -1
  327. dqcot554 comparetotal 1E-1 1 -> -1
  328. dqcot555 comparetotal 1E-0 1 -> 0
  329. dqcot556 comparetotal 1E+1 1 -> 1
  330. dqcot557 comparetotal 1E+2 1 -> 1
  331. dqcot558 comparetotal 1E+3 1 -> 1
  332. dqcot559 comparetotal 1E+4 1 -> 1
  333. dqcot561 comparetotal 1E+5 1 -> 1
  334. dqcot562 comparetotal 1E+6 1 -> 1
  335. dqcot563 comparetotal 1E+7 1 -> 1
  336. dqcot564 comparetotal 1E+8 1 -> 1
  337. dqcot565 comparetotal 1E+9 1 -> 1
  338. dqcot566 comparetotal 1E+10 1 -> 1
  339. dqcot567 comparetotal 1E+11 1 -> 1
  340. dqcot568 comparetotal 1E+12 1 -> 1
  341. dqcot569 comparetotal 1E+13 1 -> 1
  342. dqcot570 comparetotal 1E+14 1 -> 1
  343. dqcot571 comparetotal 1E+15 1 -> 1
  344. dqcot572 comparetotal 1E+16 1 -> 1
  345. dqcot573 comparetotal 1E+17 1 -> 1
  346. -- similar with a useful coefficient, one side only
  347. dqcot578 comparetotal 0.000000987654321 1E-17 -> 1
  348. dqcot579 comparetotal 0.000000987654321 1E-16 -> 1
  349. dqcot580 comparetotal 0.000000987654321 1E-15 -> 1
  350. dqcot581 comparetotal 0.000000987654321 1E-14 -> 1
  351. dqcot582 comparetotal 0.000000987654321 1E-13 -> 1
  352. dqcot583 comparetotal 0.000000987654321 1E-12 -> 1
  353. dqcot584 comparetotal 0.000000987654321 1E-11 -> 1
  354. dqcot585 comparetotal 0.000000987654321 1E-10 -> 1
  355. dqcot586 comparetotal 0.000000987654321 1E-9 -> 1
  356. dqcot587 comparetotal 0.000000987654321 1E-8 -> 1
  357. dqcot588 comparetotal 0.000000987654321 1E-7 -> 1
  358. dqcot589 comparetotal 0.000000987654321 1E-6 -> -1
  359. dqcot590 comparetotal 0.000000987654321 1E-5 -> -1
  360. dqcot591 comparetotal 0.000000987654321 1E-4 -> -1
  361. dqcot592 comparetotal 0.000000987654321 1E-3 -> -1
  362. dqcot593 comparetotal 0.000000987654321 1E-2 -> -1
  363. dqcot594 comparetotal 0.000000987654321 1E-1 -> -1
  364. dqcot595 comparetotal 0.000000987654321 1E-0 -> -1
  365. dqcot596 comparetotal 0.000000987654321 1E+1 -> -1
  366. dqcot597 comparetotal 0.000000987654321 1E+2 -> -1
  367. dqcot598 comparetotal 0.000000987654321 1E+3 -> -1
  368. dqcot599 comparetotal 0.000000987654321 1E+4 -> -1
  369. -- check some unit-y traps
  370. dqcot600 comparetotal 12 12.2345 -> -1
  371. dqcot601 comparetotal 12.0 12.2345 -> -1
  372. dqcot602 comparetotal 12.00 12.2345 -> -1
  373. dqcot603 comparetotal 12.000 12.2345 -> -1
  374. dqcot604 comparetotal 12.0000 12.2345 -> -1
  375. dqcot605 comparetotal 12.00000 12.2345 -> -1
  376. dqcot606 comparetotal 12.000000 12.2345 -> -1
  377. dqcot607 comparetotal 12.0000000 12.2345 -> -1
  378. dqcot608 comparetotal 12.00000000 12.2345 -> -1
  379. dqcot609 comparetotal 12.000000000 12.2345 -> -1
  380. dqcot610 comparetotal 12.1234 12 -> 1
  381. dqcot611 comparetotal 12.1234 12.0 -> 1
  382. dqcot612 comparetotal 12.1234 12.00 -> 1
  383. dqcot613 comparetotal 12.1234 12.000 -> 1
  384. dqcot614 comparetotal 12.1234 12.0000 -> 1
  385. dqcot615 comparetotal 12.1234 12.00000 -> 1
  386. dqcot616 comparetotal 12.1234 12.000000 -> 1
  387. dqcot617 comparetotal 12.1234 12.0000000 -> 1
  388. dqcot618 comparetotal 12.1234 12.00000000 -> 1
  389. dqcot619 comparetotal 12.1234 12.000000000 -> 1
  390. dqcot620 comparetotal -12 -12.2345 -> 1
  391. dqcot621 comparetotal -12.0 -12.2345 -> 1
  392. dqcot622 comparetotal -12.00 -12.2345 -> 1
  393. dqcot623 comparetotal -12.000 -12.2345 -> 1
  394. dqcot624 comparetotal -12.0000 -12.2345 -> 1
  395. dqcot625 comparetotal -12.00000 -12.2345 -> 1
  396. dqcot626 comparetotal -12.000000 -12.2345 -> 1
  397. dqcot627 comparetotal -12.0000000 -12.2345 -> 1
  398. dqcot628 comparetotal -12.00000000 -12.2345 -> 1
  399. dqcot629 comparetotal -12.000000000 -12.2345 -> 1
  400. dqcot630 comparetotal -12.1234 -12 -> -1
  401. dqcot631 comparetotal -12.1234 -12.0 -> -1
  402. dqcot632 comparetotal -12.1234 -12.00 -> -1
  403. dqcot633 comparetotal -12.1234 -12.000 -> -1
  404. dqcot634 comparetotal -12.1234 -12.0000 -> -1
  405. dqcot635 comparetotal -12.1234 -12.00000 -> -1
  406. dqcot636 comparetotal -12.1234 -12.000000 -> -1
  407. dqcot637 comparetotal -12.1234 -12.0000000 -> -1
  408. dqcot638 comparetotal -12.1234 -12.00000000 -> -1
  409. dqcot639 comparetotal -12.1234 -12.000000000 -> -1
  410. -- extended zeros
  411. dqcot640 comparetotal 0 0 -> 0
  412. dqcot641 comparetotal 0 -0 -> 1
  413. dqcot642 comparetotal 0 -0.0 -> 1
  414. dqcot643 comparetotal 0 0.0 -> 1
  415. dqcot644 comparetotal -0 0 -> -1
  416. dqcot645 comparetotal -0 -0 -> 0
  417. dqcot646 comparetotal -0 -0.0 -> -1
  418. dqcot647 comparetotal -0 0.0 -> -1
  419. dqcot648 comparetotal 0.0 0 -> -1
  420. dqcot649 comparetotal 0.0 -0 -> 1
  421. dqcot650 comparetotal 0.0 -0.0 -> 1
  422. dqcot651 comparetotal 0.0 0.0 -> 0
  423. dqcot652 comparetotal -0.0 0 -> -1
  424. dqcot653 comparetotal -0.0 -0 -> 1
  425. dqcot654 comparetotal -0.0 -0.0 -> 0
  426. dqcot655 comparetotal -0.0 0.0 -> -1
  427. dqcot656 comparetotal -0E1 0.0 -> -1
  428. dqcot657 comparetotal -0E2 0.0 -> -1
  429. dqcot658 comparetotal 0E1 0.0 -> 1
  430. dqcot659 comparetotal 0E2 0.0 -> 1
  431. dqcot660 comparetotal -0E1 0 -> -1
  432. dqcot661 comparetotal -0E2 0 -> -1
  433. dqcot662 comparetotal 0E1 0 -> 1
  434. dqcot663 comparetotal 0E2 0 -> 1
  435. dqcot664 comparetotal -0E1 -0E1 -> 0
  436. dqcot665 comparetotal -0E2 -0E1 -> -1
  437. dqcot666 comparetotal 0E1 -0E1 -> 1
  438. dqcot667 comparetotal 0E2 -0E1 -> 1
  439. dqcot668 comparetotal -0E1 -0E2 -> 1
  440. dqcot669 comparetotal -0E2 -0E2 -> 0
  441. dqcot670 comparetotal 0E1 -0E2 -> 1
  442. dqcot671 comparetotal 0E2 -0E2 -> 1
  443. dqcot672 comparetotal -0E1 0E1 -> -1
  444. dqcot673 comparetotal -0E2 0E1 -> -1
  445. dqcot674 comparetotal 0E1 0E1 -> 0
  446. dqcot675 comparetotal 0E2 0E1 -> 1
  447. dqcot676 comparetotal -0E1 0E2 -> -1
  448. dqcot677 comparetotal -0E2 0E2 -> -1
  449. dqcot678 comparetotal 0E1 0E2 -> -1
  450. dqcot679 comparetotal 0E2 0E2 -> 0
  451. -- trailing zeros; unit-y
  452. dqcot680 comparetotal 12 12 -> 0
  453. dqcot681 comparetotal 12 12.0 -> 1
  454. dqcot682 comparetotal 12 12.00 -> 1
  455. dqcot683 comparetotal 12 12.000 -> 1
  456. dqcot684 comparetotal 12 12.0000 -> 1
  457. dqcot685 comparetotal 12 12.00000 -> 1
  458. dqcot686 comparetotal 12 12.000000 -> 1
  459. dqcot687 comparetotal 12 12.0000000 -> 1
  460. dqcot688 comparetotal 12 12.00000000 -> 1
  461. dqcot689 comparetotal 12 12.000000000 -> 1
  462. dqcot690 comparetotal 12 12 -> 0
  463. dqcot691 comparetotal 12.0 12 -> -1
  464. dqcot692 comparetotal 12.00 12 -> -1
  465. dqcot693 comparetotal 12.000 12 -> -1
  466. dqcot694 comparetotal 12.0000 12 -> -1
  467. dqcot695 comparetotal 12.00000 12 -> -1
  468. dqcot696 comparetotal 12.000000 12 -> -1
  469. dqcot697 comparetotal 12.0000000 12 -> -1
  470. dqcot698 comparetotal 12.00000000 12 -> -1
  471. dqcot699 comparetotal 12.000000000 12 -> -1
  472. -- old long operand checks
  473. dqcot701 comparetotal 12345678000 1 -> 1
  474. dqcot702 comparetotal 1 12345678000 -> -1
  475. dqcot703 comparetotal 1234567800 1 -> 1
  476. dqcot704 comparetotal 1 1234567800 -> -1
  477. dqcot705 comparetotal 1234567890 1 -> 1
  478. dqcot706 comparetotal 1 1234567890 -> -1
  479. dqcot707 comparetotal 1234567891 1 -> 1
  480. dqcot708 comparetotal 1 1234567891 -> -1
  481. dqcot709 comparetotal 12345678901 1 -> 1
  482. dqcot710 comparetotal 1 12345678901 -> -1
  483. dqcot711 comparetotal 1234567896 1 -> 1
  484. dqcot712 comparetotal 1 1234567896 -> -1
  485. dqcot713 comparetotal -1234567891 1 -> -1
  486. dqcot714 comparetotal 1 -1234567891 -> 1
  487. dqcot715 comparetotal -12345678901 1 -> -1
  488. dqcot716 comparetotal 1 -12345678901 -> 1
  489. dqcot717 comparetotal -1234567896 1 -> -1
  490. dqcot718 comparetotal 1 -1234567896 -> 1
  491. -- old residue cases
  492. dqcot740 comparetotal 1 0.9999999 -> 1
  493. dqcot741 comparetotal 1 0.999999 -> 1
  494. dqcot742 comparetotal 1 0.99999 -> 1
  495. dqcot743 comparetotal 1 1.0000 -> 1
  496. dqcot744 comparetotal 1 1.00001 -> -1
  497. dqcot745 comparetotal 1 1.000001 -> -1
  498. dqcot746 comparetotal 1 1.0000001 -> -1
  499. dqcot750 comparetotal 0.9999999 1 -> -1
  500. dqcot751 comparetotal 0.999999 1 -> -1
  501. dqcot752 comparetotal 0.99999 1 -> -1
  502. dqcot753 comparetotal 1.0000 1 -> -1
  503. dqcot754 comparetotal 1.00001 1 -> 1
  504. dqcot755 comparetotal 1.000001 1 -> 1
  505. dqcot756 comparetotal 1.0000001 1 -> 1
  506. -- Specials
  507. dqcot780 comparetotal Inf -Inf -> 1
  508. dqcot781 comparetotal Inf -1000 -> 1
  509. dqcot782 comparetotal Inf -1 -> 1
  510. dqcot783 comparetotal Inf -0 -> 1
  511. dqcot784 comparetotal Inf 0 -> 1
  512. dqcot785 comparetotal Inf 1 -> 1
  513. dqcot786 comparetotal Inf 1000 -> 1
  514. dqcot787 comparetotal Inf Inf -> 0
  515. dqcot788 comparetotal -1000 Inf -> -1
  516. dqcot789 comparetotal -Inf Inf -> -1
  517. dqcot790 comparetotal -1 Inf -> -1
  518. dqcot791 comparetotal -0 Inf -> -1
  519. dqcot792 comparetotal 0 Inf -> -1
  520. dqcot793 comparetotal 1 Inf -> -1
  521. dqcot794 comparetotal 1000 Inf -> -1
  522. dqcot795 comparetotal Inf Inf -> 0
  523. dqcot800 comparetotal -Inf -Inf -> 0
  524. dqcot801 comparetotal -Inf -1000 -> -1
  525. dqcot802 comparetotal -Inf -1 -> -1
  526. dqcot803 comparetotal -Inf -0 -> -1
  527. dqcot804 comparetotal -Inf 0 -> -1
  528. dqcot805 comparetotal -Inf 1 -> -1
  529. dqcot806 comparetotal -Inf 1000 -> -1
  530. dqcot807 comparetotal -Inf Inf -> -1
  531. dqcot808 comparetotal -Inf -Inf -> 0
  532. dqcot809 comparetotal -1000 -Inf -> 1
  533. dqcot810 comparetotal -1 -Inf -> 1
  534. dqcot811 comparetotal -0 -Inf -> 1
  535. dqcot812 comparetotal 0 -Inf -> 1
  536. dqcot813 comparetotal 1 -Inf -> 1
  537. dqcot814 comparetotal 1000 -Inf -> 1
  538. dqcot815 comparetotal Inf -Inf -> 1
  539. dqcot821 comparetotal NaN -Inf -> 1
  540. dqcot822 comparetotal NaN -1000 -> 1
  541. dqcot823 comparetotal NaN -1 -> 1
  542. dqcot824 comparetotal NaN -0 -> 1
  543. dqcot825 comparetotal NaN 0 -> 1
  544. dqcot826 comparetotal NaN 1 -> 1
  545. dqcot827 comparetotal NaN 1000 -> 1
  546. dqcot828 comparetotal NaN Inf -> 1
  547. dqcot829 comparetotal NaN NaN -> 0
  548. dqcot830 comparetotal -Inf NaN -> -1
  549. dqcot831 comparetotal -1000 NaN -> -1
  550. dqcot832 comparetotal -1 NaN -> -1
  551. dqcot833 comparetotal -0 NaN -> -1
  552. dqcot834 comparetotal 0 NaN -> -1
  553. dqcot835 comparetotal 1 NaN -> -1
  554. dqcot836 comparetotal 1000 NaN -> -1
  555. dqcot837 comparetotal Inf NaN -> -1
  556. dqcot838 comparetotal -NaN -NaN -> 0
  557. dqcot839 comparetotal +NaN -NaN -> 1
  558. dqcot840 comparetotal -NaN +NaN -> -1
  559. dqcot841 comparetotal sNaN -sNaN -> 1
  560. dqcot842 comparetotal sNaN -NaN -> 1
  561. dqcot843 comparetotal sNaN -Inf -> 1
  562. dqcot844 comparetotal sNaN -1000 -> 1
  563. dqcot845 comparetotal sNaN -1 -> 1
  564. dqcot846 comparetotal sNaN -0 -> 1
  565. dqcot847 comparetotal sNaN 0 -> 1
  566. dqcot848 comparetotal sNaN 1 -> 1
  567. dqcot849 comparetotal sNaN 1000 -> 1
  568. dqcot850 comparetotal sNaN NaN -> -1
  569. dqcot851 comparetotal sNaN sNaN -> 0
  570. dqcot852 comparetotal -sNaN sNaN -> -1
  571. dqcot853 comparetotal -NaN sNaN -> -1
  572. dqcot854 comparetotal -Inf sNaN -> -1
  573. dqcot855 comparetotal -1000 sNaN -> -1
  574. dqcot856 comparetotal -1 sNaN -> -1
  575. dqcot857 comparetotal -0 sNaN -> -1
  576. dqcot858 comparetotal 0 sNaN -> -1
  577. dqcot859 comparetotal 1 sNaN -> -1
  578. dqcot860 comparetotal 1000 sNaN -> -1
  579. dqcot861 comparetotal Inf sNaN -> -1
  580. dqcot862 comparetotal NaN sNaN -> 1
  581. dqcot863 comparetotal sNaN sNaN -> 0
  582. dqcot871 comparetotal -sNaN -sNaN -> 0
  583. dqcot872 comparetotal -sNaN -NaN -> 1
  584. dqcot873 comparetotal -sNaN -Inf -> -1
  585. dqcot874 comparetotal -sNaN -1000 -> -1
  586. dqcot875 comparetotal -sNaN -1 -> -1
  587. dqcot876 comparetotal -sNaN -0 -> -1
  588. dqcot877 comparetotal -sNaN 0 -> -1
  589. dqcot878 comparetotal -sNaN 1 -> -1
  590. dqcot879 comparetotal -sNaN 1000 -> -1
  591. dqcot880 comparetotal -sNaN NaN -> -1
  592. dqcot881 comparetotal -sNaN sNaN -> -1
  593. dqcot882 comparetotal -sNaN -sNaN -> 0
  594. dqcot883 comparetotal -NaN -sNaN -> -1
  595. dqcot884 comparetotal -Inf -sNaN -> 1
  596. dqcot885 comparetotal -1000 -sNaN -> 1
  597. dqcot886 comparetotal -1 -sNaN -> 1
  598. dqcot887 comparetotal -0 -sNaN -> 1
  599. dqcot888 comparetotal 0 -sNaN -> 1
  600. dqcot889 comparetotal 1 -sNaN -> 1
  601. dqcot890 comparetotal 1000 -sNaN -> 1
  602. dqcot891 comparetotal Inf -sNaN -> 1
  603. dqcot892 comparetotal NaN -sNaN -> 1
  604. dqcot893 comparetotal sNaN -sNaN -> 1
  605. -- NaNs with payload
  606. dqcot960 comparetotal NaN9 -Inf -> 1
  607. dqcot961 comparetotal NaN8 999 -> 1
  608. dqcot962 comparetotal NaN77 Inf -> 1
  609. dqcot963 comparetotal -NaN67 NaN5 -> -1
  610. dqcot964 comparetotal -Inf -NaN4 -> 1
  611. dqcot965 comparetotal -999 -NaN33 -> 1
  612. dqcot966 comparetotal Inf NaN2 -> -1
  613. dqcot970 comparetotal -NaN41 -NaN42 -> 1
  614. dqcot971 comparetotal +NaN41 -NaN42 -> 1
  615. dqcot972 comparetotal -NaN41 +NaN42 -> -1
  616. dqcot973 comparetotal +NaN41 +NaN42 -> -1
  617. dqcot974 comparetotal -NaN42 -NaN01 -> -1
  618. dqcot975 comparetotal +NaN42 -NaN01 -> 1
  619. dqcot976 comparetotal -NaN42 +NaN01 -> -1
  620. dqcot977 comparetotal +NaN42 +NaN01 -> 1
  621. dqcot980 comparetotal -sNaN771 -sNaN772 -> 1
  622. dqcot981 comparetotal +sNaN771 -sNaN772 -> 1
  623. dqcot982 comparetotal -sNaN771 +sNaN772 -> -1
  624. dqcot983 comparetotal +sNaN771 +sNaN772 -> -1
  625. dqcot984 comparetotal -sNaN772 -sNaN771 -> -1
  626. dqcot985 comparetotal +sNaN772 -sNaN771 -> 1
  627. dqcot986 comparetotal -sNaN772 +sNaN771 -> -1
  628. dqcot987 comparetotal +sNaN772 +sNaN771 -> 1
  629. dqcot991 comparetotal -sNaN99 -Inf -> -1
  630. dqcot992 comparetotal sNaN98 -11 -> 1
  631. dqcot993 comparetotal sNaN97 NaN -> -1
  632. dqcot994 comparetotal sNaN16 sNaN94 -> -1
  633. dqcot995 comparetotal NaN85 sNaN83 -> 1
  634. dqcot996 comparetotal -Inf sNaN92 -> -1
  635. dqcot997 comparetotal 088 sNaN81 -> -1
  636. dqcot998 comparetotal Inf sNaN90 -> -1
  637. dqcot999 comparetotal NaN -sNaN89 -> 1
  638. -- spread zeros
  639. dqcot1110 comparetotal 0E-6143 0 -> -1
  640. dqcot1111 comparetotal 0E-6143 -0 -> 1
  641. dqcot1112 comparetotal -0E-6143 0 -> -1
  642. dqcot1113 comparetotal -0E-6143 -0 -> 1
  643. dqcot1114 comparetotal 0E-6143 0E+6144 -> -1
  644. dqcot1115 comparetotal 0E-6143 -0E+6144 -> 1
  645. dqcot1116 comparetotal -0E-6143 0E+6144 -> -1
  646. dqcot1117 comparetotal -0E-6143 -0E+6144 -> 1
  647. dqcot1118 comparetotal 0 0E+6144 -> -1
  648. dqcot1119 comparetotal 0 -0E+6144 -> 1
  649. dqcot1120 comparetotal -0 0E+6144 -> -1
  650. dqcot1121 comparetotal -0 -0E+6144 -> 1
  651. dqcot1130 comparetotal 0E+6144 0 -> 1
  652. dqcot1131 comparetotal 0E+6144 -0 -> 1
  653. dqcot1132 comparetotal -0E+6144 0 -> -1
  654. dqcot1133 comparetotal -0E+6144 -0 -> -1
  655. dqcot1134 comparetotal 0E+6144 0E-6143 -> 1
  656. dqcot1135 comparetotal 0E+6144 -0E-6143 -> 1
  657. dqcot1136 comparetotal -0E+6144 0E-6143 -> -1
  658. dqcot1137 comparetotal -0E+6144 -0E-6143 -> -1
  659. dqcot1138 comparetotal 0 0E-6143 -> 1
  660. dqcot1139 comparetotal 0 -0E-6143 -> 1
  661. dqcot1140 comparetotal -0 0E-6143 -> -1
  662. dqcot1141 comparetotal -0 -0E-6143 -> -1
  663. -- Null tests
  664. dqcot9990 comparetotal 10 # -> NaN Invalid_operation
  665. dqcot9991 comparetotal # 10 -> NaN Invalid_operation