dqAnd.decTest 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. ------------------------------------------------------------------------
  2. -- dqAnd.decTest -- digitwise logical AND for decQuads --
  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. extended: 1
  22. clamp: 1
  23. precision: 34
  24. maxExponent: 6144
  25. minExponent: -6143
  26. rounding: half_even
  27. -- Sanity check (truth table)
  28. dqand001 and 0 0 -> 0
  29. dqand002 and 0 1 -> 0
  30. dqand003 and 1 0 -> 0
  31. dqand004 and 1 1 -> 1
  32. dqand005 and 1100 1010 -> 1000
  33. -- and at msd and msd-1
  34. -- 1234567890123456789012345678901234
  35. dqand006 and 0000000000000000000000000000000000 0000000000000000000000000000000000 -> 0
  36. dqand007 and 0000000000000000000000000000000000 1000000000000000000000000000000000 -> 0
  37. dqand008 and 1000000000000000000000000000000000 0000000000000000000000000000000000 -> 0
  38. dqand009 and 1000000000000000000000000000000000 1000000000000000000000000000000000 -> 1000000000000000000000000000000000
  39. dqand010 and 0000000000000000000000000000000000 0000000000000000000000000000000000 -> 0
  40. dqand011 and 0000000000000000000000000000000000 0100000000000000000000000000000000 -> 0
  41. dqand012 and 0100000000000000000000000000000000 0000000000000000000000000000000000 -> 0
  42. dqand013 and 0100000000000000000000000000000000 0100000000000000000000000000000000 -> 100000000000000000000000000000000
  43. -- Various lengths
  44. -- 1234567890123456789012345678901234
  45. dqand601 and 0111111111111111111111111111111111 1111111111111111111111111111111111 -> 111111111111111111111111111111111
  46. dqand602 and 1011111111111111111111111111111111 1111111111111111111111111111111111 -> 1011111111111111111111111111111111
  47. dqand603 and 1101111111111111111111111111111111 1111111111111111111111111111111111 -> 1101111111111111111111111111111111
  48. dqand604 and 1110111111111111111111111111111111 1111111111111111111111111111111111 -> 1110111111111111111111111111111111
  49. dqand605 and 1111011111111111111111111111111111 1111111111111111111111111111111111 -> 1111011111111111111111111111111111
  50. dqand606 and 1111101111111111111111111111111111 1111111111111111111111111111111111 -> 1111101111111111111111111111111111
  51. dqand607 and 1111110111111111111111111111111111 1111111111111111111111111111111111 -> 1111110111111111111111111111111111
  52. dqand608 and 1111111011111111111111111111111111 1111111111111111111111111111111111 -> 1111111011111111111111111111111111
  53. dqand609 and 1111111101111111111111111111111111 1111111111111111111111111111111111 -> 1111111101111111111111111111111111
  54. dqand610 and 1111111110111111111111111111111111 1111111111111111111111111111111111 -> 1111111110111111111111111111111111
  55. dqand611 and 1111111111011111111111111111111111 1111111111111111111111111111111111 -> 1111111111011111111111111111111111
  56. dqand612 and 1111111111101111111111111111111111 1111111111111111111111111111111111 -> 1111111111101111111111111111111111
  57. dqand613 and 1111111111110111111111111111111111 1111111111111111111111111111111111 -> 1111111111110111111111111111111111
  58. dqand614 and 1111111111111011111111111111111111 1111111111111111111111111111111111 -> 1111111111111011111111111111111111
  59. dqand615 and 1111111111111101111111111111111111 1111111111111111111111111111111111 -> 1111111111111101111111111111111111
  60. dqand616 and 1111111111111110111111111111111111 1111111111111111111111111111111111 -> 1111111111111110111111111111111111
  61. dqand617 and 1111111111111111011111111111111111 1111111111111111111111111111111111 -> 1111111111111111011111111111111111
  62. dqand618 and 1111111111111111101111111111111111 1111111111111111111111111111111111 -> 1111111111111111101111111111111111
  63. dqand619 and 1111111111111111110111111111111111 1111111111111111111111111111111111 -> 1111111111111111110111111111111111
  64. dqand620 and 1111111111111111111011111111111111 1111111111111111111111111111111111 -> 1111111111111111111011111111111111
  65. dqand621 and 1111111111111111111101111111111111 1111111111111111111111111111111111 -> 1111111111111111111101111111111111
  66. dqand622 and 1111111111111111111110111111111111 1111111111111111111111111111111111 -> 1111111111111111111110111111111111
  67. dqand623 and 1111111111111111111111011111111111 1111111111111111111111111111111111 -> 1111111111111111111111011111111111
  68. dqand624 and 1111111111111111111111101111111111 1111111111111111111111111111111111 -> 1111111111111111111111101111111111
  69. dqand625 and 1111111111111111111111110111111111 1111111111111111111111111111111111 -> 1111111111111111111111110111111111
  70. dqand626 and 1111111111111111111111111011111111 1111111111111111111111111111111111 -> 1111111111111111111111111011111111
  71. dqand627 and 1111111111111111111111111101111111 1111111111111111111111111111111111 -> 1111111111111111111111111101111111
  72. dqand628 and 1111111111111111111111111110111111 1111111111111111111111111111111111 -> 1111111111111111111111111110111111
  73. dqand629 and 1111111111111111111111111111011111 1111111111111111111111111111111111 -> 1111111111111111111111111111011111
  74. dqand630 and 1111111111111111111111111111101111 1111111111111111111111111111111111 -> 1111111111111111111111111111101111
  75. dqand631 and 1111111111111111111111111111110111 1111111111111111111111111111111111 -> 1111111111111111111111111111110111
  76. dqand632 and 1111111111111111111111111111111011 1111111111111111111111111111111111 -> 1111111111111111111111111111111011
  77. dqand633 and 1111111111111111111111111111111101 1111111111111111111111111111111111 -> 1111111111111111111111111111111101
  78. dqand634 and 1111111111111111111111111111111110 1111111111111111111111111111111111 -> 1111111111111111111111111111111110
  79. dqand641 and 1111111111111111111111111111111111 0111111111111111111111111111111111 -> 111111111111111111111111111111111
  80. dqand642 and 1111111111111111111111111111111111 1011111111111111111111111111111111 -> 1011111111111111111111111111111111
  81. dqand643 and 1111111111111111111111111111111111 1101111111111111111111111111111111 -> 1101111111111111111111111111111111
  82. dqand644 and 1111111111111111111111111111111111 1110111111111111111111111111111111 -> 1110111111111111111111111111111111
  83. dqand645 and 1111111111111111111111111111111111 1111011111111111111111111111111111 -> 1111011111111111111111111111111111
  84. dqand646 and 1111111111111111111111111111111111 1111101111111111111111111111111111 -> 1111101111111111111111111111111111
  85. dqand647 and 1111111111111111111111111111111111 1111110111111111111111111111111111 -> 1111110111111111111111111111111111
  86. dqand648 and 1111111111111111111111111111111111 1111111011111111111111111111111111 -> 1111111011111111111111111111111111
  87. dqand649 and 1111111111111111111111111111111111 1111111101111111111111111111111111 -> 1111111101111111111111111111111111
  88. dqand650 and 1111111111111111111111111111111111 1111111110111111111111111111111111 -> 1111111110111111111111111111111111
  89. dqand651 and 1111111111111111111111111111111111 1111111111011111111111111111111111 -> 1111111111011111111111111111111111
  90. dqand652 and 1111111111111111111111111111111111 1111111111101111111111111111111111 -> 1111111111101111111111111111111111
  91. dqand653 and 1111111111111111111111111111111111 1111111111110111111111111111111111 -> 1111111111110111111111111111111111
  92. dqand654 and 1111111111111111111111111111111111 1111111111111011111111111111111111 -> 1111111111111011111111111111111111
  93. dqand655 and 1111111111111111111111111111111111 1111111111111101111111111111111111 -> 1111111111111101111111111111111111
  94. dqand656 and 1111111111111111111111111111111111 1111111111111110111111111111111111 -> 1111111111111110111111111111111111
  95. dqand657 and 1111111111111111111111111111111111 1111111111111111011111111111111111 -> 1111111111111111011111111111111111
  96. dqand658 and 1111111111111111111111111111111111 1111111111111111101111111111111111 -> 1111111111111111101111111111111111
  97. dqand659 and 1111111111111111111111111111111111 1111111111111111110111111111111111 -> 1111111111111111110111111111111111
  98. dqand660 and 1111111111111111111111111111111111 1111111111111111111011111111111111 -> 1111111111111111111011111111111111
  99. dqand661 and 1111111111111111111111111111111111 1111111111111111111101111111111111 -> 1111111111111111111101111111111111
  100. dqand662 and 1111111111111111111111111111111111 1111111111111111111110111111111111 -> 1111111111111111111110111111111111
  101. dqand663 and 1111111111111111111111111111111111 1111111111111111111111011111111111 -> 1111111111111111111111011111111111
  102. dqand664 and 1111111111111111111111111111111111 1111111111111111111111101111111111 -> 1111111111111111111111101111111111
  103. dqand665 and 1111111111111111111111111111111111 1111111111111111111111110111111111 -> 1111111111111111111111110111111111
  104. dqand666 and 1111111111111111111111111111111111 1111111111111111111111111011111111 -> 1111111111111111111111111011111111
  105. dqand667 and 1111111111111111111111111111111111 1111111111111111111111111101111111 -> 1111111111111111111111111101111111
  106. dqand668 and 1111111111111111111111111111111111 1111111111111111111111111110111111 -> 1111111111111111111111111110111111
  107. dqand669 and 1111111111111111111111111111111111 1111111111111111111111111111011111 -> 1111111111111111111111111111011111
  108. dqand670 and 1111111111111111111111111111111111 1111111111111111111111111111101111 -> 1111111111111111111111111111101111
  109. dqand671 and 1111111111111111111111111111111111 1111111111111111111111111111110111 -> 1111111111111111111111111111110111
  110. dqand672 and 1111111111111111111111111111111111 1111111111111111111111111111111011 -> 1111111111111111111111111111111011
  111. dqand673 and 1111111111111111111111111111111111 1111111111111111111111111111111101 -> 1111111111111111111111111111111101
  112. dqand674 and 1111111111111111111111111111111111 1111111111111111111111111111111110 -> 1111111111111111111111111111111110
  113. dqand675 and 0111111111111111111111111111111111 1111111111111111111111111111111110 -> 111111111111111111111111111111110
  114. dqand676 and 1111111111111111111111111111111111 1111111111111111111111111111111110 -> 1111111111111111111111111111111110
  115. dqand021 and 1111111111111111 1111111111111111 -> 1111111111111111
  116. dqand024 and 1111111111111111 111111111111111 -> 111111111111111
  117. dqand025 and 1111111111111111 11111111111111 -> 11111111111111
  118. dqand026 and 1111111111111111 1111111111111 -> 1111111111111
  119. dqand027 and 1111111111111111 111111111111 -> 111111111111
  120. dqand028 and 1111111111111111 11111111111 -> 11111111111
  121. dqand029 and 1111111111111111 1111111111 -> 1111111111
  122. dqand030 and 1111111111111111 111111111 -> 111111111
  123. dqand031 and 1111111111111111 11111111 -> 11111111
  124. dqand032 and 1111111111111111 1111111 -> 1111111
  125. dqand033 and 1111111111111111 111111 -> 111111
  126. dqand034 and 1111111111111111 11111 -> 11111
  127. dqand035 and 1111111111111111 1111 -> 1111
  128. dqand036 and 1111111111111111 111 -> 111
  129. dqand037 and 1111111111111111 11 -> 11
  130. dqand038 and 1111111111111111 1 -> 1
  131. dqand039 and 1111111111111111 0 -> 0
  132. dqand040 and 1111111111111111 1111111111111111 -> 1111111111111111
  133. dqand041 and 111111111111111 1111111111111111 -> 111111111111111
  134. dqand042 and 111111111111111 1111111111111111 -> 111111111111111
  135. dqand043 and 11111111111111 1111111111111111 -> 11111111111111
  136. dqand044 and 1111111111111 1111111111111111 -> 1111111111111
  137. dqand045 and 111111111111 1111111111111111 -> 111111111111
  138. dqand046 and 11111111111 1111111111111111 -> 11111111111
  139. dqand047 and 1111111111 1111111111111111 -> 1111111111
  140. dqand048 and 111111111 1111111111111111 -> 111111111
  141. dqand049 and 11111111 1111111111111111 -> 11111111
  142. dqand050 and 1111111 1111111111111111 -> 1111111
  143. dqand051 and 111111 1111111111111111 -> 111111
  144. dqand052 and 11111 1111111111111111 -> 11111
  145. dqand053 and 1111 1111111111111111 -> 1111
  146. dqand054 and 111 1111111111111111 -> 111
  147. dqand055 and 11 1111111111111111 -> 11
  148. dqand056 and 1 1111111111111111 -> 1
  149. dqand057 and 0 1111111111111111 -> 0
  150. dqand150 and 1111111111 1 -> 1
  151. dqand151 and 111111111 1 -> 1
  152. dqand152 and 11111111 1 -> 1
  153. dqand153 and 1111111 1 -> 1
  154. dqand154 and 111111 1 -> 1
  155. dqand155 and 11111 1 -> 1
  156. dqand156 and 1111 1 -> 1
  157. dqand157 and 111 1 -> 1
  158. dqand158 and 11 1 -> 1
  159. dqand159 and 1 1 -> 1
  160. dqand160 and 1111111111 0 -> 0
  161. dqand161 and 111111111 0 -> 0
  162. dqand162 and 11111111 0 -> 0
  163. dqand163 and 1111111 0 -> 0
  164. dqand164 and 111111 0 -> 0
  165. dqand165 and 11111 0 -> 0
  166. dqand166 and 1111 0 -> 0
  167. dqand167 and 111 0 -> 0
  168. dqand168 and 11 0 -> 0
  169. dqand169 and 1 0 -> 0
  170. dqand170 and 1 1111111111 -> 1
  171. dqand171 and 1 111111111 -> 1
  172. dqand172 and 1 11111111 -> 1
  173. dqand173 and 1 1111111 -> 1
  174. dqand174 and 1 111111 -> 1
  175. dqand175 and 1 11111 -> 1
  176. dqand176 and 1 1111 -> 1
  177. dqand177 and 1 111 -> 1
  178. dqand178 and 1 11 -> 1
  179. dqand179 and 1 1 -> 1
  180. dqand180 and 0 1111111111 -> 0
  181. dqand181 and 0 111111111 -> 0
  182. dqand182 and 0 11111111 -> 0
  183. dqand183 and 0 1111111 -> 0
  184. dqand184 and 0 111111 -> 0
  185. dqand185 and 0 11111 -> 0
  186. dqand186 and 0 1111 -> 0
  187. dqand187 and 0 111 -> 0
  188. dqand188 and 0 11 -> 0
  189. dqand189 and 0 1 -> 0
  190. dqand090 and 011111111 111111111 -> 11111111
  191. dqand091 and 101111111 111111111 -> 101111111
  192. dqand092 and 110111111 111111111 -> 110111111
  193. dqand093 and 111011111 111111111 -> 111011111
  194. dqand094 and 111101111 111111111 -> 111101111
  195. dqand095 and 111110111 111111111 -> 111110111
  196. dqand096 and 111111011 111111111 -> 111111011
  197. dqand097 and 111111101 111111111 -> 111111101
  198. dqand098 and 111111110 111111111 -> 111111110
  199. dqand100 and 111111111 011111111 -> 11111111
  200. dqand101 and 111111111 101111111 -> 101111111
  201. dqand102 and 111111111 110111111 -> 110111111
  202. dqand103 and 111111111 111011111 -> 111011111
  203. dqand104 and 111111111 111101111 -> 111101111
  204. dqand105 and 111111111 111110111 -> 111110111
  205. dqand106 and 111111111 111111011 -> 111111011
  206. dqand107 and 111111111 111111101 -> 111111101
  207. dqand108 and 111111111 111111110 -> 111111110
  208. -- non-0/1 should not be accepted, nor should signs
  209. dqand220 and 111111112 111111111 -> NaN Invalid_operation
  210. dqand221 and 333333333 333333333 -> NaN Invalid_operation
  211. dqand222 and 555555555 555555555 -> NaN Invalid_operation
  212. dqand223 and 777777777 777777777 -> NaN Invalid_operation
  213. dqand224 and 999999999 999999999 -> NaN Invalid_operation
  214. dqand225 and 222222222 999999999 -> NaN Invalid_operation
  215. dqand226 and 444444444 999999999 -> NaN Invalid_operation
  216. dqand227 and 666666666 999999999 -> NaN Invalid_operation
  217. dqand228 and 888888888 999999999 -> NaN Invalid_operation
  218. dqand229 and 999999999 222222222 -> NaN Invalid_operation
  219. dqand230 and 999999999 444444444 -> NaN Invalid_operation
  220. dqand231 and 999999999 666666666 -> NaN Invalid_operation
  221. dqand232 and 999999999 888888888 -> NaN Invalid_operation
  222. -- a few randoms
  223. dqand240 and 567468689 -934981942 -> NaN Invalid_operation
  224. dqand241 and 567367689 934981942 -> NaN Invalid_operation
  225. dqand242 and -631917772 -706014634 -> NaN Invalid_operation
  226. dqand243 and -756253257 138579234 -> NaN Invalid_operation
  227. dqand244 and 835590149 567435400 -> NaN Invalid_operation
  228. -- test MSD
  229. dqand250 and 2000000111000111000111000000000000 1000000111000111000111000000000000 -> NaN Invalid_operation
  230. dqand251 and 7000000111000111000111000000000000 1000000111000111000111000000000000 -> NaN Invalid_operation
  231. dqand252 and 8000000111000111000111000000000000 1000000111000111000111000000000000 -> NaN Invalid_operation
  232. dqand253 and 9000000111000111000111000000000000 1000000111000111000111000000000000 -> NaN Invalid_operation
  233. dqand254 and 2000000111000111000111000000000000 0000000111000111000111000000000000 -> NaN Invalid_operation
  234. dqand255 and 7000000111000111000111000000000000 0000000111000111000111000000000000 -> NaN Invalid_operation
  235. dqand256 and 8000000111000111000111000000000000 0000000111000111000111000000000000 -> NaN Invalid_operation
  236. dqand257 and 9000000111000111000111000000000000 0000000111000111000111000000000000 -> NaN Invalid_operation
  237. dqand258 and 1000000111000111000111000000000000 2000000111000111000111000000000000 -> NaN Invalid_operation
  238. dqand259 and 1000000111000111000111000000000000 7000000111000111000111000000000000 -> NaN Invalid_operation
  239. dqand260 and 1000000111000111000111000000000000 8000000111000111000111000000000000 -> NaN Invalid_operation
  240. dqand261 and 1000000111000111000111000000000000 9000000111000111000111000000000000 -> NaN Invalid_operation
  241. dqand262 and 0000000111000111000111000000000000 2000000111000111000111000000000000 -> NaN Invalid_operation
  242. dqand263 and 0000000111000111000111000000000000 7000000111000111000111000000000000 -> NaN Invalid_operation
  243. dqand264 and 0000000111000111000111000000000000 8000000111000111000111000000000000 -> NaN Invalid_operation
  244. dqand265 and 0000000111000111000111000000000000 9000000111000111000111000000000000 -> NaN Invalid_operation
  245. -- test MSD-1
  246. dqand270 and 0200000111000111000111001000000000 1000000111000111000111100000000010 -> NaN Invalid_operation
  247. dqand271 and 0700000111000111000111000100000000 1000000111000111000111010000000100 -> NaN Invalid_operation
  248. dqand272 and 0800000111000111000111000010000000 1000000111000111000111001000001000 -> NaN Invalid_operation
  249. dqand273 and 0900000111000111000111000001000000 1000000111000111000111000100010000 -> NaN Invalid_operation
  250. dqand274 and 1000000111000111000111000000100000 0200000111000111000111000010100000 -> NaN Invalid_operation
  251. dqand275 and 1000000111000111000111000000010000 0700000111000111000111000001000000 -> NaN Invalid_operation
  252. dqand276 and 1000000111000111000111000000001000 0800000111000111000111000010100000 -> NaN Invalid_operation
  253. dqand277 and 1000000111000111000111000000000100 0900000111000111000111000000010000 -> NaN Invalid_operation
  254. -- test LSD
  255. dqand280 and 0010000111000111000111000000000002 1000000111000111000111000100000001 -> NaN Invalid_operation
  256. dqand281 and 0001000111000111000111000000000007 1000000111000111000111001000000011 -> NaN Invalid_operation
  257. dqand282 and 0000000111000111000111100000000008 1000000111000111000111010000000001 -> NaN Invalid_operation
  258. dqand283 and 0000000111000111000111010000000009 1000000111000111000111100000000001 -> NaN Invalid_operation
  259. dqand284 and 1000000111000111000111001000000000 0001000111000111000111000000000002 -> NaN Invalid_operation
  260. dqand285 and 1000000111000111000111000100000000 0010000111000111000111000000000007 -> NaN Invalid_operation
  261. dqand286 and 1000000111000111000111000010000000 0100000111000111000111000000000008 -> NaN Invalid_operation
  262. dqand287 and 1000000111000111000111000001000000 1000000111000111000111000000000009 -> NaN Invalid_operation
  263. -- test Middie
  264. dqand288 and 0010000111000111000111000020000000 1000000111000111000111001000000000 -> NaN Invalid_operation
  265. dqand289 and 0001000111000111000111000070000001 1000000111000111000111000100000000 -> NaN Invalid_operation
  266. dqand290 and 0000000111000111000111100080000010 1000000111000111000111000010000000 -> NaN Invalid_operation
  267. dqand291 and 0000000111000111000111010090000100 1000000111000111000111000001000000 -> NaN Invalid_operation
  268. dqand292 and 1000000111000111000111001000001000 0000000111000111000111000020100000 -> NaN Invalid_operation
  269. dqand293 and 1000000111000111000111000100010000 0000000111000111000111000070010000 -> NaN Invalid_operation
  270. dqand294 and 1000000111000111000111000010100000 0000000111000111000111000080001000 -> NaN Invalid_operation
  271. dqand295 and 1000000111000111000111000001000000 0000000111000111000111000090000100 -> NaN Invalid_operation
  272. -- signs
  273. dqand296 and -1000000111000111000111000001000000 -0000001110001110001110010000000100 -> NaN Invalid_operation
  274. dqand297 and -1000000111000111000111000001000000 0000001110001110001110000010000100 -> NaN Invalid_operation
  275. dqand298 and 1000000111000111000111000001000000 -0000001110001110001110001000000100 -> NaN Invalid_operation
  276. dqand299 and 1000000111000111000111000001000000 0000001110001110001110000011000100 -> 110000110000110000001000000
  277. -- Nmax, Nmin, Ntiny-like
  278. dqand331 and 2 9.99999999E+999 -> NaN Invalid_operation
  279. dqand332 and 3 1E-999 -> NaN Invalid_operation
  280. dqand333 and 4 1.00000000E-999 -> NaN Invalid_operation
  281. dqand334 and 5 1E-900 -> NaN Invalid_operation
  282. dqand335 and 6 -1E-900 -> NaN Invalid_operation
  283. dqand336 and 7 -1.00000000E-999 -> NaN Invalid_operation
  284. dqand337 and 8 -1E-999 -> NaN Invalid_operation
  285. dqand338 and 9 -9.99999999E+999 -> NaN Invalid_operation
  286. dqand341 and 9.99999999E+999 -18 -> NaN Invalid_operation
  287. dqand342 and 1E-999 01 -> NaN Invalid_operation
  288. dqand343 and 1.00000000E-999 -18 -> NaN Invalid_operation
  289. dqand344 and 1E-900 18 -> NaN Invalid_operation
  290. dqand345 and -1E-900 -10 -> NaN Invalid_operation
  291. dqand346 and -1.00000000E-999 18 -> NaN Invalid_operation
  292. dqand347 and -1E-999 10 -> NaN Invalid_operation
  293. dqand348 and -9.99999999E+999 -18 -> NaN Invalid_operation
  294. -- A few other non-integers
  295. dqand361 and 1.0 1 -> NaN Invalid_operation
  296. dqand362 and 1E+1 1 -> NaN Invalid_operation
  297. dqand363 and 0.0 1 -> NaN Invalid_operation
  298. dqand364 and 0E+1 1 -> NaN Invalid_operation
  299. dqand365 and 9.9 1 -> NaN Invalid_operation
  300. dqand366 and 9E+1 1 -> NaN Invalid_operation
  301. dqand371 and 0 1.0 -> NaN Invalid_operation
  302. dqand372 and 0 1E+1 -> NaN Invalid_operation
  303. dqand373 and 0 0.0 -> NaN Invalid_operation
  304. dqand374 and 0 0E+1 -> NaN Invalid_operation
  305. dqand375 and 0 9.9 -> NaN Invalid_operation
  306. dqand376 and 0 9E+1 -> NaN Invalid_operation
  307. -- All Specials are in error
  308. dqand780 and -Inf -Inf -> NaN Invalid_operation
  309. dqand781 and -Inf -1000 -> NaN Invalid_operation
  310. dqand782 and -Inf -1 -> NaN Invalid_operation
  311. dqand783 and -Inf -0 -> NaN Invalid_operation
  312. dqand784 and -Inf 0 -> NaN Invalid_operation
  313. dqand785 and -Inf 1 -> NaN Invalid_operation
  314. dqand786 and -Inf 1000 -> NaN Invalid_operation
  315. dqand787 and -1000 -Inf -> NaN Invalid_operation
  316. dqand788 and -Inf -Inf -> NaN Invalid_operation
  317. dqand789 and -1 -Inf -> NaN Invalid_operation
  318. dqand790 and -0 -Inf -> NaN Invalid_operation
  319. dqand791 and 0 -Inf -> NaN Invalid_operation
  320. dqand792 and 1 -Inf -> NaN Invalid_operation
  321. dqand793 and 1000 -Inf -> NaN Invalid_operation
  322. dqand794 and Inf -Inf -> NaN Invalid_operation
  323. dqand800 and Inf -Inf -> NaN Invalid_operation
  324. dqand801 and Inf -1000 -> NaN Invalid_operation
  325. dqand802 and Inf -1 -> NaN Invalid_operation
  326. dqand803 and Inf -0 -> NaN Invalid_operation
  327. dqand804 and Inf 0 -> NaN Invalid_operation
  328. dqand805 and Inf 1 -> NaN Invalid_operation
  329. dqand806 and Inf 1000 -> NaN Invalid_operation
  330. dqand807 and Inf Inf -> NaN Invalid_operation
  331. dqand808 and -1000 Inf -> NaN Invalid_operation
  332. dqand809 and -Inf Inf -> NaN Invalid_operation
  333. dqand810 and -1 Inf -> NaN Invalid_operation
  334. dqand811 and -0 Inf -> NaN Invalid_operation
  335. dqand812 and 0 Inf -> NaN Invalid_operation
  336. dqand813 and 1 Inf -> NaN Invalid_operation
  337. dqand814 and 1000 Inf -> NaN Invalid_operation
  338. dqand815 and Inf Inf -> NaN Invalid_operation
  339. dqand821 and NaN -Inf -> NaN Invalid_operation
  340. dqand822 and NaN -1000 -> NaN Invalid_operation
  341. dqand823 and NaN -1 -> NaN Invalid_operation
  342. dqand824 and NaN -0 -> NaN Invalid_operation
  343. dqand825 and NaN 0 -> NaN Invalid_operation
  344. dqand826 and NaN 1 -> NaN Invalid_operation
  345. dqand827 and NaN 1000 -> NaN Invalid_operation
  346. dqand828 and NaN Inf -> NaN Invalid_operation
  347. dqand829 and NaN NaN -> NaN Invalid_operation
  348. dqand830 and -Inf NaN -> NaN Invalid_operation
  349. dqand831 and -1000 NaN -> NaN Invalid_operation
  350. dqand832 and -1 NaN -> NaN Invalid_operation
  351. dqand833 and -0 NaN -> NaN Invalid_operation
  352. dqand834 and 0 NaN -> NaN Invalid_operation
  353. dqand835 and 1 NaN -> NaN Invalid_operation
  354. dqand836 and 1000 NaN -> NaN Invalid_operation
  355. dqand837 and Inf NaN -> NaN Invalid_operation
  356. dqand841 and sNaN -Inf -> NaN Invalid_operation
  357. dqand842 and sNaN -1000 -> NaN Invalid_operation
  358. dqand843 and sNaN -1 -> NaN Invalid_operation
  359. dqand844 and sNaN -0 -> NaN Invalid_operation
  360. dqand845 and sNaN 0 -> NaN Invalid_operation
  361. dqand846 and sNaN 1 -> NaN Invalid_operation
  362. dqand847 and sNaN 1000 -> NaN Invalid_operation
  363. dqand848 and sNaN NaN -> NaN Invalid_operation
  364. dqand849 and sNaN sNaN -> NaN Invalid_operation
  365. dqand850 and NaN sNaN -> NaN Invalid_operation
  366. dqand851 and -Inf sNaN -> NaN Invalid_operation
  367. dqand852 and -1000 sNaN -> NaN Invalid_operation
  368. dqand853 and -1 sNaN -> NaN Invalid_operation
  369. dqand854 and -0 sNaN -> NaN Invalid_operation
  370. dqand855 and 0 sNaN -> NaN Invalid_operation
  371. dqand856 and 1 sNaN -> NaN Invalid_operation
  372. dqand857 and 1000 sNaN -> NaN Invalid_operation
  373. dqand858 and Inf sNaN -> NaN Invalid_operation
  374. dqand859 and NaN sNaN -> NaN Invalid_operation
  375. -- propagating NaNs
  376. dqand861 and NaN1 -Inf -> NaN Invalid_operation
  377. dqand862 and +NaN2 -1000 -> NaN Invalid_operation
  378. dqand863 and NaN3 1000 -> NaN Invalid_operation
  379. dqand864 and NaN4 Inf -> NaN Invalid_operation
  380. dqand865 and NaN5 +NaN6 -> NaN Invalid_operation
  381. dqand866 and -Inf NaN7 -> NaN Invalid_operation
  382. dqand867 and -1000 NaN8 -> NaN Invalid_operation
  383. dqand868 and 1000 NaN9 -> NaN Invalid_operation
  384. dqand869 and Inf +NaN10 -> NaN Invalid_operation
  385. dqand871 and sNaN11 -Inf -> NaN Invalid_operation
  386. dqand872 and sNaN12 -1000 -> NaN Invalid_operation
  387. dqand873 and sNaN13 1000 -> NaN Invalid_operation
  388. dqand874 and sNaN14 NaN17 -> NaN Invalid_operation
  389. dqand875 and sNaN15 sNaN18 -> NaN Invalid_operation
  390. dqand876 and NaN16 sNaN19 -> NaN Invalid_operation
  391. dqand877 and -Inf +sNaN20 -> NaN Invalid_operation
  392. dqand878 and -1000 sNaN21 -> NaN Invalid_operation
  393. dqand879 and 1000 sNaN22 -> NaN Invalid_operation
  394. dqand880 and Inf sNaN23 -> NaN Invalid_operation
  395. dqand881 and +NaN25 +sNaN24 -> NaN Invalid_operation
  396. dqand882 and -NaN26 NaN28 -> NaN Invalid_operation
  397. dqand883 and -sNaN27 sNaN29 -> NaN Invalid_operation
  398. dqand884 and 1000 -NaN30 -> NaN Invalid_operation
  399. dqand885 and 1000 -sNaN31 -> NaN Invalid_operation