ddSameQuantum.decTest 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. ------------------------------------------------------------------------
  2. -- ddSameQuantum.decTest -- check decDouble quantums match --
  3. -- Copyright (c) IBM Corporation, 2001, 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 decDoubles.
  22. precision: 16
  23. maxExponent: 384
  24. minExponent: -383
  25. extended: 1
  26. clamp: 1
  27. rounding: half_even
  28. ddsamq001 samequantum 0 0 -> 1
  29. ddsamq002 samequantum 0 1 -> 1
  30. ddsamq003 samequantum 1 0 -> 1
  31. ddsamq004 samequantum 1 1 -> 1
  32. ddsamq011 samequantum 10 1E+1 -> 0
  33. ddsamq012 samequantum 10E+1 10E+1 -> 1
  34. ddsamq013 samequantum 100 10E+1 -> 0
  35. ddsamq014 samequantum 100 1E+2 -> 0
  36. ddsamq015 samequantum 0.1 1E-2 -> 0
  37. ddsamq016 samequantum 0.1 1E-1 -> 1
  38. ddsamq017 samequantum 0.1 1E-0 -> 0
  39. ddsamq018 samequantum 999 999 -> 1
  40. ddsamq019 samequantum 999E-1 99.9 -> 1
  41. ddsamq020 samequantum 111E-1 22.2 -> 1
  42. ddsamq021 samequantum 111E-1 1234.2 -> 1
  43. -- zeros
  44. ddsamq030 samequantum 0.0 1.1 -> 1
  45. ddsamq031 samequantum 0.0 1.11 -> 0
  46. ddsamq032 samequantum 0.0 0 -> 0
  47. ddsamq033 samequantum 0.0 0.0 -> 1
  48. ddsamq034 samequantum 0.0 0.00 -> 0
  49. ddsamq035 samequantum 0E+1 0E+0 -> 0
  50. ddsamq036 samequantum 0E+1 0E+1 -> 1
  51. ddsamq037 samequantum 0E+1 0E+2 -> 0
  52. ddsamq038 samequantum 0E-17 0E-16 -> 0
  53. ddsamq039 samequantum 0E-17 0E-17 -> 1
  54. ddsamq040 samequantum 0E-17 0E-18 -> 0
  55. ddsamq041 samequantum 0E-17 0.0E-15 -> 0
  56. ddsamq042 samequantum 0E-17 0.0E-16 -> 1
  57. ddsamq043 samequantum 0E-17 0.0E-17 -> 0
  58. ddsamq044 samequantum -0E-17 0.0E-16 -> 1
  59. ddsamq045 samequantum 0E-17 -0.0E-17 -> 0
  60. ddsamq046 samequantum 0E-17 -0.0E-16 -> 1
  61. ddsamq047 samequantum -0E-17 0.0E-17 -> 0
  62. ddsamq048 samequantum -0E-17 -0.0E-16 -> 1
  63. ddsamq049 samequantum -0E-17 -0.0E-17 -> 0
  64. -- Nmax, Nmin, Ntiny
  65. ddsamq051 samequantum 9.999999999999999E+384 9.999999999999999E+384 -> 1
  66. ddsamq052 samequantum 1E-383 1E-383 -> 1
  67. ddsamq053 samequantum 1.000000000000000E-383 1.000000000000000E-383 -> 1
  68. ddsamq054 samequantum 1E-398 1E-398 -> 1
  69. ddsamq055 samequantum 9.999999999999999E+384 9.999999999999999E+384 -> 1
  70. ddsamq056 samequantum 1E-383 1E-383 -> 1
  71. ddsamq057 samequantum 1.000000000000000E-383 1.000000000000000E-383 -> 1
  72. ddsamq058 samequantum 1E-398 1E-398 -> 1
  73. ddsamq061 samequantum -1E-398 -1E-398 -> 1
  74. ddsamq062 samequantum -1.000000000000000E-383 -1.000000000000000E-383 -> 1
  75. ddsamq063 samequantum -1E-383 -1E-383 -> 1
  76. ddsamq064 samequantum -9.999999999999999E+384 -9.999999999999999E+384 -> 1
  77. ddsamq065 samequantum -1E-398 -1E-398 -> 1
  78. ddsamq066 samequantum -1.000000000000000E-383 -1.000000000000000E-383 -> 1
  79. ddsamq067 samequantum -1E-383 -1E-383 -> 1
  80. ddsamq068 samequantum -9.999999999999999E+384 -9.999999999999999E+384 -> 1
  81. ddsamq071 samequantum -4E-398 -1E-398 -> 1
  82. ddsamq072 samequantum -4.000000000000000E-383 -1.000040000000000E-383 -> 1
  83. ddsamq073 samequantum -4E-383 -1E-383 -> 1
  84. ddsamq074 samequantum -4.999999999999999E+384 -9.999999999949999E+384 -> 1
  85. ddsamq075 samequantum -4E-398 -1E-398 -> 1
  86. ddsamq076 samequantum -4.000000000000000E-383 -1.004000000000000E-383 -> 1
  87. ddsamq077 samequantum -4E-383 -1E-383 -> 1
  88. ddsamq078 samequantum -4.999999999999999E+384 -9.949999999999999E+384 -> 1
  89. ddsamq081 samequantum -4E-397 -1E-398 -> 0
  90. ddsamq082 samequantum -4.000000000000000E-383 -1.000040000000000E-336 -> 0
  91. ddsamq083 samequantum -4E-346 -1E-383 -> 0
  92. ddsamq084 samequantum -4.999999999999999E+384 -9.999499999999999E+336 -> 0
  93. ddsamq085 samequantum -4E-397 -1E-398 -> 0
  94. ddsamq086 samequantum -4.000000000000000E-383 -1.004000000000000E-336 -> 0
  95. ddsamq087 samequantum -4E-346 -1E-383 -> 0
  96. ddsamq088 samequantum -4.999999999999999E+384 -9.949999999999999E+336 -> 0
  97. -- specials & combinations
  98. ddsamq0110 samequantum -Inf -Inf -> 1
  99. ddsamq0111 samequantum -Inf Inf -> 1
  100. ddsamq0112 samequantum -Inf NaN -> 0
  101. ddsamq0113 samequantum -Inf -7E+3 -> 0
  102. ddsamq0114 samequantum -Inf -7 -> 0
  103. ddsamq0115 samequantum -Inf -7E-3 -> 0
  104. ddsamq0116 samequantum -Inf -0E-3 -> 0
  105. ddsamq0117 samequantum -Inf -0 -> 0
  106. ddsamq0118 samequantum -Inf -0E+3 -> 0
  107. ddsamq0119 samequantum -Inf 0E-3 -> 0
  108. ddsamq0120 samequantum -Inf 0 -> 0
  109. ddsamq0121 samequantum -Inf 0E+3 -> 0
  110. ddsamq0122 samequantum -Inf 7E-3 -> 0
  111. ddsamq0123 samequantum -Inf 7 -> 0
  112. ddsamq0124 samequantum -Inf 7E+3 -> 0
  113. ddsamq0125 samequantum -Inf sNaN -> 0
  114. ddsamq0210 samequantum Inf -Inf -> 1
  115. ddsamq0211 samequantum Inf Inf -> 1
  116. ddsamq0212 samequantum Inf NaN -> 0
  117. ddsamq0213 samequantum Inf -7E+3 -> 0
  118. ddsamq0214 samequantum Inf -7 -> 0
  119. ddsamq0215 samequantum Inf -7E-3 -> 0
  120. ddsamq0216 samequantum Inf -0E-3 -> 0
  121. ddsamq0217 samequantum Inf -0 -> 0
  122. ddsamq0218 samequantum Inf -0E+3 -> 0
  123. ddsamq0219 samequantum Inf 0E-3 -> 0
  124. ddsamq0220 samequantum Inf 0 -> 0
  125. ddsamq0221 samequantum Inf 0E+3 -> 0
  126. ddsamq0222 samequantum Inf 7E-3 -> 0
  127. ddsamq0223 samequantum Inf 7 -> 0
  128. ddsamq0224 samequantum Inf 7E+3 -> 0
  129. ddsamq0225 samequantum Inf sNaN -> 0
  130. ddsamq0310 samequantum NaN -Inf -> 0
  131. ddsamq0311 samequantum NaN Inf -> 0
  132. ddsamq0312 samequantum NaN NaN -> 1
  133. ddsamq0313 samequantum NaN -7E+3 -> 0
  134. ddsamq0314 samequantum NaN -7 -> 0
  135. ddsamq0315 samequantum NaN -7E-3 -> 0
  136. ddsamq0316 samequantum NaN -0E-3 -> 0
  137. ddsamq0317 samequantum NaN -0 -> 0
  138. ddsamq0318 samequantum NaN -0E+3 -> 0
  139. ddsamq0319 samequantum NaN 0E-3 -> 0
  140. ddsamq0320 samequantum NaN 0 -> 0
  141. ddsamq0321 samequantum NaN 0E+3 -> 0
  142. ddsamq0322 samequantum NaN 7E-3 -> 0
  143. ddsamq0323 samequantum NaN 7 -> 0
  144. ddsamq0324 samequantum NaN 7E+3 -> 0
  145. ddsamq0325 samequantum NaN sNaN -> 1
  146. ddsamq0410 samequantum -7E+3 -Inf -> 0
  147. ddsamq0411 samequantum -7E+3 Inf -> 0
  148. ddsamq0412 samequantum -7E+3 NaN -> 0
  149. ddsamq0413 samequantum -7E+3 -7E+3 -> 1
  150. ddsamq0414 samequantum -7E+3 -7 -> 0
  151. ddsamq0415 samequantum -7E+3 -7E-3 -> 0
  152. ddsamq0416 samequantum -7E+3 -0E-3 -> 0
  153. ddsamq0417 samequantum -7E+3 -0 -> 0
  154. ddsamq0418 samequantum -7E+3 -0E+3 -> 1
  155. ddsamq0419 samequantum -7E+3 0E-3 -> 0
  156. ddsamq0420 samequantum -7E+3 0 -> 0
  157. ddsamq0421 samequantum -7E+3 0E+3 -> 1
  158. ddsamq0422 samequantum -7E+3 7E-3 -> 0
  159. ddsamq0423 samequantum -7E+3 7 -> 0
  160. ddsamq0424 samequantum -7E+3 7E+3 -> 1
  161. ddsamq0425 samequantum -7E+3 sNaN -> 0
  162. ddsamq0510 samequantum -7 -Inf -> 0
  163. ddsamq0511 samequantum -7 Inf -> 0
  164. ddsamq0512 samequantum -7 NaN -> 0
  165. ddsamq0513 samequantum -7 -7E+3 -> 0
  166. ddsamq0514 samequantum -7 -7 -> 1
  167. ddsamq0515 samequantum -7 -7E-3 -> 0
  168. ddsamq0516 samequantum -7 -0E-3 -> 0
  169. ddsamq0517 samequantum -7 -0 -> 1
  170. ddsamq0518 samequantum -7 -0E+3 -> 0
  171. ddsamq0519 samequantum -7 0E-3 -> 0
  172. ddsamq0520 samequantum -7 0 -> 1
  173. ddsamq0521 samequantum -7 0E+3 -> 0
  174. ddsamq0522 samequantum -7 7E-3 -> 0
  175. ddsamq0523 samequantum -7 7 -> 1
  176. ddsamq0524 samequantum -7 7E+3 -> 0
  177. ddsamq0525 samequantum -7 sNaN -> 0
  178. ddsamq0610 samequantum -7E-3 -Inf -> 0
  179. ddsamq0611 samequantum -7E-3 Inf -> 0
  180. ddsamq0612 samequantum -7E-3 NaN -> 0
  181. ddsamq0613 samequantum -7E-3 -7E+3 -> 0
  182. ddsamq0614 samequantum -7E-3 -7 -> 0
  183. ddsamq0615 samequantum -7E-3 -7E-3 -> 1
  184. ddsamq0616 samequantum -7E-3 -0E-3 -> 1
  185. ddsamq0617 samequantum -7E-3 -0 -> 0
  186. ddsamq0618 samequantum -7E-3 -0E+3 -> 0
  187. ddsamq0619 samequantum -7E-3 0E-3 -> 1
  188. ddsamq0620 samequantum -7E-3 0 -> 0
  189. ddsamq0621 samequantum -7E-3 0E+3 -> 0
  190. ddsamq0622 samequantum -7E-3 7E-3 -> 1
  191. ddsamq0623 samequantum -7E-3 7 -> 0
  192. ddsamq0624 samequantum -7E-3 7E+3 -> 0
  193. ddsamq0625 samequantum -7E-3 sNaN -> 0
  194. ddsamq0710 samequantum -0E-3 -Inf -> 0
  195. ddsamq0711 samequantum -0E-3 Inf -> 0
  196. ddsamq0712 samequantum -0E-3 NaN -> 0
  197. ddsamq0713 samequantum -0E-3 -7E+3 -> 0
  198. ddsamq0714 samequantum -0E-3 -7 -> 0
  199. ddsamq0715 samequantum -0E-3 -7E-3 -> 1
  200. ddsamq0716 samequantum -0E-3 -0E-3 -> 1
  201. ddsamq0717 samequantum -0E-3 -0 -> 0
  202. ddsamq0718 samequantum -0E-3 -0E+3 -> 0
  203. ddsamq0719 samequantum -0E-3 0E-3 -> 1
  204. ddsamq0720 samequantum -0E-3 0 -> 0
  205. ddsamq0721 samequantum -0E-3 0E+3 -> 0
  206. ddsamq0722 samequantum -0E-3 7E-3 -> 1
  207. ddsamq0723 samequantum -0E-3 7 -> 0
  208. ddsamq0724 samequantum -0E-3 7E+3 -> 0
  209. ddsamq0725 samequantum -0E-3 sNaN -> 0
  210. ddsamq0810 samequantum -0 -Inf -> 0
  211. ddsamq0811 samequantum -0 Inf -> 0
  212. ddsamq0812 samequantum -0 NaN -> 0
  213. ddsamq0813 samequantum -0 -7E+3 -> 0
  214. ddsamq0814 samequantum -0 -7 -> 1
  215. ddsamq0815 samequantum -0 -7E-3 -> 0
  216. ddsamq0816 samequantum -0 -0E-3 -> 0
  217. ddsamq0817 samequantum -0 -0 -> 1
  218. ddsamq0818 samequantum -0 -0E+3 -> 0
  219. ddsamq0819 samequantum -0 0E-3 -> 0
  220. ddsamq0820 samequantum -0 0 -> 1
  221. ddsamq0821 samequantum -0 0E+3 -> 0
  222. ddsamq0822 samequantum -0 7E-3 -> 0
  223. ddsamq0823 samequantum -0 7 -> 1
  224. ddsamq0824 samequantum -0 7E+3 -> 0
  225. ddsamq0825 samequantum -0 sNaN -> 0
  226. ddsamq0910 samequantum -0E+3 -Inf -> 0
  227. ddsamq0911 samequantum -0E+3 Inf -> 0
  228. ddsamq0912 samequantum -0E+3 NaN -> 0
  229. ddsamq0913 samequantum -0E+3 -7E+3 -> 1
  230. ddsamq0914 samequantum -0E+3 -7 -> 0
  231. ddsamq0915 samequantum -0E+3 -7E-3 -> 0
  232. ddsamq0916 samequantum -0E+3 -0E-3 -> 0
  233. ddsamq0917 samequantum -0E+3 -0 -> 0
  234. ddsamq0918 samequantum -0E+3 -0E+3 -> 1
  235. ddsamq0919 samequantum -0E+3 0E-3 -> 0
  236. ddsamq0920 samequantum -0E+3 0 -> 0
  237. ddsamq0921 samequantum -0E+3 0E+3 -> 1
  238. ddsamq0922 samequantum -0E+3 7E-3 -> 0
  239. ddsamq0923 samequantum -0E+3 7 -> 0
  240. ddsamq0924 samequantum -0E+3 7E+3 -> 1
  241. ddsamq0925 samequantum -0E+3 sNaN -> 0
  242. ddsamq1110 samequantum 0E-3 -Inf -> 0
  243. ddsamq1111 samequantum 0E-3 Inf -> 0
  244. ddsamq1112 samequantum 0E-3 NaN -> 0
  245. ddsamq1113 samequantum 0E-3 -7E+3 -> 0
  246. ddsamq1114 samequantum 0E-3 -7 -> 0
  247. ddsamq1115 samequantum 0E-3 -7E-3 -> 1
  248. ddsamq1116 samequantum 0E-3 -0E-3 -> 1
  249. ddsamq1117 samequantum 0E-3 -0 -> 0
  250. ddsamq1118 samequantum 0E-3 -0E+3 -> 0
  251. ddsamq1119 samequantum 0E-3 0E-3 -> 1
  252. ddsamq1120 samequantum 0E-3 0 -> 0
  253. ddsamq1121 samequantum 0E-3 0E+3 -> 0
  254. ddsamq1122 samequantum 0E-3 7E-3 -> 1
  255. ddsamq1123 samequantum 0E-3 7 -> 0
  256. ddsamq1124 samequantum 0E-3 7E+3 -> 0
  257. ddsamq1125 samequantum 0E-3 sNaN -> 0
  258. ddsamq1210 samequantum 0 -Inf -> 0
  259. ddsamq1211 samequantum 0 Inf -> 0
  260. ddsamq1212 samequantum 0 NaN -> 0
  261. ddsamq1213 samequantum 0 -7E+3 -> 0
  262. ddsamq1214 samequantum 0 -7 -> 1
  263. ddsamq1215 samequantum 0 -7E-3 -> 0
  264. ddsamq1216 samequantum 0 -0E-3 -> 0
  265. ddsamq1217 samequantum 0 -0 -> 1
  266. ddsamq1218 samequantum 0 -0E+3 -> 0
  267. ddsamq1219 samequantum 0 0E-3 -> 0
  268. ddsamq1220 samequantum 0 0 -> 1
  269. ddsamq1221 samequantum 0 0E+3 -> 0
  270. ddsamq1222 samequantum 0 7E-3 -> 0
  271. ddsamq1223 samequantum 0 7 -> 1
  272. ddsamq1224 samequantum 0 7E+3 -> 0
  273. ddsamq1225 samequantum 0 sNaN -> 0
  274. ddsamq1310 samequantum 0E+3 -Inf -> 0
  275. ddsamq1311 samequantum 0E+3 Inf -> 0
  276. ddsamq1312 samequantum 0E+3 NaN -> 0
  277. ddsamq1313 samequantum 0E+3 -7E+3 -> 1
  278. ddsamq1314 samequantum 0E+3 -7 -> 0
  279. ddsamq1315 samequantum 0E+3 -7E-3 -> 0
  280. ddsamq1316 samequantum 0E+3 -0E-3 -> 0
  281. ddsamq1317 samequantum 0E+3 -0 -> 0
  282. ddsamq1318 samequantum 0E+3 -0E+3 -> 1
  283. ddsamq1319 samequantum 0E+3 0E-3 -> 0
  284. ddsamq1320 samequantum 0E+3 0 -> 0
  285. ddsamq1321 samequantum 0E+3 0E+3 -> 1
  286. ddsamq1322 samequantum 0E+3 7E-3 -> 0
  287. ddsamq1323 samequantum 0E+3 7 -> 0
  288. ddsamq1324 samequantum 0E+3 7E+3 -> 1
  289. ddsamq1325 samequantum 0E+3 sNaN -> 0
  290. ddsamq1410 samequantum 7E-3 -Inf -> 0
  291. ddsamq1411 samequantum 7E-3 Inf -> 0
  292. ddsamq1412 samequantum 7E-3 NaN -> 0
  293. ddsamq1413 samequantum 7E-3 -7E+3 -> 0
  294. ddsamq1414 samequantum 7E-3 -7 -> 0
  295. ddsamq1415 samequantum 7E-3 -7E-3 -> 1
  296. ddsamq1416 samequantum 7E-3 -0E-3 -> 1
  297. ddsamq1417 samequantum 7E-3 -0 -> 0
  298. ddsamq1418 samequantum 7E-3 -0E+3 -> 0
  299. ddsamq1419 samequantum 7E-3 0E-3 -> 1
  300. ddsamq1420 samequantum 7E-3 0 -> 0
  301. ddsamq1421 samequantum 7E-3 0E+3 -> 0
  302. ddsamq1422 samequantum 7E-3 7E-3 -> 1
  303. ddsamq1423 samequantum 7E-3 7 -> 0
  304. ddsamq1424 samequantum 7E-3 7E+3 -> 0
  305. ddsamq1425 samequantum 7E-3 sNaN -> 0
  306. ddsamq1510 samequantum 7 -Inf -> 0
  307. ddsamq1511 samequantum 7 Inf -> 0
  308. ddsamq1512 samequantum 7 NaN -> 0
  309. ddsamq1513 samequantum 7 -7E+3 -> 0
  310. ddsamq1514 samequantum 7 -7 -> 1
  311. ddsamq1515 samequantum 7 -7E-3 -> 0
  312. ddsamq1516 samequantum 7 -0E-3 -> 0
  313. ddsamq1517 samequantum 7 -0 -> 1
  314. ddsamq1518 samequantum 7 -0E+3 -> 0
  315. ddsamq1519 samequantum 7 0E-3 -> 0
  316. ddsamq1520 samequantum 7 0 -> 1
  317. ddsamq1521 samequantum 7 0E+3 -> 0
  318. ddsamq1522 samequantum 7 7E-3 -> 0
  319. ddsamq1523 samequantum 7 7 -> 1
  320. ddsamq1524 samequantum 7 7E+3 -> 0
  321. ddsamq1525 samequantum 7 sNaN -> 0
  322. ddsamq1610 samequantum 7E+3 -Inf -> 0
  323. ddsamq1611 samequantum 7E+3 Inf -> 0
  324. ddsamq1612 samequantum 7E+3 NaN -> 0
  325. ddsamq1613 samequantum 7E+3 -7E+3 -> 1
  326. ddsamq1614 samequantum 7E+3 -7 -> 0
  327. ddsamq1615 samequantum 7E+3 -7E-3 -> 0
  328. ddsamq1616 samequantum 7E+3 -0E-3 -> 0
  329. ddsamq1617 samequantum 7E+3 -0 -> 0
  330. ddsamq1618 samequantum 7E+3 -0E+3 -> 1
  331. ddsamq1619 samequantum 7E+3 0E-3 -> 0
  332. ddsamq1620 samequantum 7E+3 0 -> 0
  333. ddsamq1621 samequantum 7E+3 0E+3 -> 1
  334. ddsamq1622 samequantum 7E+3 7E-3 -> 0
  335. ddsamq1623 samequantum 7E+3 7 -> 0
  336. ddsamq1624 samequantum 7E+3 7E+3 -> 1
  337. ddsamq1625 samequantum 7E+3 sNaN -> 0
  338. ddsamq1710 samequantum sNaN -Inf -> 0
  339. ddsamq1711 samequantum sNaN Inf -> 0
  340. ddsamq1712 samequantum sNaN NaN -> 1
  341. ddsamq1713 samequantum sNaN -7E+3 -> 0
  342. ddsamq1714 samequantum sNaN -7 -> 0
  343. ddsamq1715 samequantum sNaN -7E-3 -> 0
  344. ddsamq1716 samequantum sNaN -0E-3 -> 0
  345. ddsamq1717 samequantum sNaN -0 -> 0
  346. ddsamq1718 samequantum sNaN -0E+3 -> 0
  347. ddsamq1719 samequantum sNaN 0E-3 -> 0
  348. ddsamq1720 samequantum sNaN 0 -> 0
  349. ddsamq1721 samequantum sNaN 0E+3 -> 0
  350. ddsamq1722 samequantum sNaN 7E-3 -> 0
  351. ddsamq1723 samequantum sNaN 7 -> 0
  352. ddsamq1724 samequantum sNaN 7E+3 -> 0
  353. ddsamq1725 samequantum sNaN sNaN -> 1
  354. -- noisy NaNs
  355. ddsamq1730 samequantum sNaN3 sNaN3 -> 1
  356. ddsamq1731 samequantum sNaN3 sNaN4 -> 1
  357. ddsamq1732 samequantum NaN3 NaN3 -> 1
  358. ddsamq1733 samequantum NaN3 NaN4 -> 1
  359. ddsamq1734 samequantum sNaN3 3 -> 0
  360. ddsamq1735 samequantum NaN3 3 -> 0
  361. ddsamq1736 samequantum 4 sNaN4 -> 0
  362. ddsamq1737 samequantum 3 NaN3 -> 0
  363. ddsamq1738 samequantum Inf sNaN4 -> 0
  364. ddsamq1739 samequantum -Inf NaN3 -> 0