• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1------------------------------------------------------------------------
2-- dqAdd.decTest -- decQuad addition                                  --
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------------------------------------------------------------------------
20version: 2.59
21
22-- This set of tests are for decQuads only; all arguments are
23-- representable in a decQuad
24extended:    1
25clamp:       1
26precision:   34
27maxExponent: 6144
28minExponent: -6143
29rounding:    half_even
30
31-- [first group are 'quick confidence check']
32dqadd001 add 1       1       ->  2
33dqadd002 add 2       3       ->  5
34dqadd003 add '5.75'  '3.3'   ->  9.05
35dqadd004 add '5'     '-3'    ->  2
36dqadd005 add '-5'    '-3'    ->  -8
37dqadd006 add '-7'    '2.5'   ->  -4.5
38dqadd007 add '0.7'   '0.3'   ->  1.0
39dqadd008 add '1.25'  '1.25'  ->  2.50
40dqadd009 add '1.23456789'  '1.00000000' -> '2.23456789'
41dqadd010 add '1.23456789'  '1.00000011' -> '2.23456800'
42
43--             1234567890123456      1234567890123456
44dqadd011 add '0.4444444444444444444444444444444446'  '0.5555555555555555555555555555555555' -> '1.000000000000000000000000000000000' Inexact Rounded
45dqadd012 add '0.4444444444444444444444444444444445'  '0.5555555555555555555555555555555555' -> '1.000000000000000000000000000000000' Rounded
46dqadd013 add '0.4444444444444444444444444444444444'  '0.5555555555555555555555555555555555' -> '0.9999999999999999999999999999999999'
47dqadd014 add   '4444444444444444444444444444444444' '0.49'   -> '4444444444444444444444444444444444' Inexact Rounded
48dqadd015 add   '4444444444444444444444444444444444' '0.499'  -> '4444444444444444444444444444444444' Inexact Rounded
49dqadd016 add   '4444444444444444444444444444444444' '0.4999' -> '4444444444444444444444444444444444' Inexact Rounded
50dqadd017 add   '4444444444444444444444444444444444' '0.5000' -> '4444444444444444444444444444444444' Inexact Rounded
51dqadd018 add   '4444444444444444444444444444444444' '0.5001' -> '4444444444444444444444444444444445' Inexact Rounded
52dqadd019 add   '4444444444444444444444444444444444' '0.501'  -> '4444444444444444444444444444444445' Inexact Rounded
53dqadd020 add   '4444444444444444444444444444444444' '0.51'   -> '4444444444444444444444444444444445' Inexact Rounded
54
55dqadd021 add 0 1 -> 1
56dqadd022 add 1 1 -> 2
57dqadd023 add 2 1 -> 3
58dqadd024 add 3 1 -> 4
59dqadd025 add 4 1 -> 5
60dqadd026 add 5 1 -> 6
61dqadd027 add 6 1 -> 7
62dqadd028 add 7 1 -> 8
63dqadd029 add 8 1 -> 9
64dqadd030 add 9 1 -> 10
65
66-- some carrying effects
67dqadd031 add '0.9998'  '0.0000' -> '0.9998'
68dqadd032 add '0.9998'  '0.0001' -> '0.9999'
69dqadd033 add '0.9998'  '0.0002' -> '1.0000'
70dqadd034 add '0.9998'  '0.0003' -> '1.0001'
71
72dqadd035 add '70'  '10000e+34' -> '1.000000000000000000000000000000000E+38' Inexact Rounded
73dqadd036 add '700'  '10000e+34' -> '1.000000000000000000000000000000000E+38' Inexact Rounded
74dqadd037 add '7000'  '10000e+34' -> '1.000000000000000000000000000000000E+38' Inexact Rounded
75dqadd038 add '70000'  '10000e+34' -> '1.000000000000000000000000000000001E+38' Inexact Rounded
76dqadd039 add '700000'  '10000e+34' -> '1.000000000000000000000000000000007E+38' Rounded
77
78-- symmetry:
79dqadd040 add '10000e+34'  '70' -> '1.000000000000000000000000000000000E+38' Inexact Rounded
80dqadd041 add '10000e+34'  '700' -> '1.000000000000000000000000000000000E+38' Inexact Rounded
81dqadd042 add '10000e+34'  '7000' -> '1.000000000000000000000000000000000E+38' Inexact Rounded
82dqadd044 add '10000e+34'  '70000' -> '1.000000000000000000000000000000001E+38' Inexact Rounded
83dqadd045 add '10000e+34'  '700000' -> '1.000000000000000000000000000000007E+38' Rounded
84
85-- same, without rounding
86dqadd046 add '10000e+9'  '7' -> '10000000000007'
87dqadd047 add '10000e+9'  '70' -> '10000000000070'
88dqadd048 add '10000e+9'  '700' -> '10000000000700'
89dqadd049 add '10000e+9'  '7000' -> '10000000007000'
90dqadd050 add '10000e+9'  '70000' -> '10000000070000'
91dqadd051 add '10000e+9'  '700000' -> '10000000700000'
92dqadd052 add '10000e+9'  '7000000' -> '10000007000000'
93
94-- examples from decarith
95dqadd053 add '12' '7.00' -> '19.00'
96dqadd054 add '1.3' '-1.07' -> '0.23'
97dqadd055 add '1.3' '-1.30' -> '0.00'
98dqadd056 add '1.3' '-2.07' -> '-0.77'
99dqadd057 add '1E+2' '1E+4' -> '1.01E+4'
100
101-- leading zero preservation
102dqadd061 add 1 '0.0001' -> '1.0001'
103dqadd062 add 1 '0.00001' -> '1.00001'
104dqadd063 add 1 '0.000001' -> '1.000001'
105dqadd064 add 1 '0.0000001' -> '1.0000001'
106dqadd065 add 1 '0.00000001' -> '1.00000001'
107
108-- some funny zeros [in case of bad signum]
109dqadd070 add 1  0    -> 1
110dqadd071 add 1 0.    -> 1
111dqadd072 add 1  .0   -> 1.0
112dqadd073 add 1 0.0   -> 1.0
113dqadd074 add 1 0.00  -> 1.00
114dqadd075 add  0  1   -> 1
115dqadd076 add 0.  1   -> 1
116dqadd077 add  .0 1   -> 1.0
117dqadd078 add 0.0 1   -> 1.0
118dqadd079 add 0.00 1  -> 1.00
119
120-- some carries
121dqadd080 add 999999998 1  -> 999999999
122dqadd081 add 999999999 1  -> 1000000000
123dqadd082 add  99999999 1  -> 100000000
124dqadd083 add   9999999 1  -> 10000000
125dqadd084 add    999999 1  -> 1000000
126dqadd085 add     99999 1  -> 100000
127dqadd086 add      9999 1  -> 10000
128dqadd087 add       999 1  -> 1000
129dqadd088 add        99 1  -> 100
130dqadd089 add         9 1  -> 10
131
132
133-- more LHS swaps
134dqadd090 add '-56267E-10'   0 ->  '-0.0000056267'
135dqadd091 add '-56267E-6'    0 ->  '-0.056267'
136dqadd092 add '-56267E-5'    0 ->  '-0.56267'
137dqadd093 add '-56267E-4'    0 ->  '-5.6267'
138dqadd094 add '-56267E-3'    0 ->  '-56.267'
139dqadd095 add '-56267E-2'    0 ->  '-562.67'
140dqadd096 add '-56267E-1'    0 ->  '-5626.7'
141dqadd097 add '-56267E-0'    0 ->  '-56267'
142dqadd098 add '-5E-10'       0 ->  '-5E-10'
143dqadd099 add '-5E-7'        0 ->  '-5E-7'
144dqadd100 add '-5E-6'        0 ->  '-0.000005'
145dqadd101 add '-5E-5'        0 ->  '-0.00005'
146dqadd102 add '-5E-4'        0 ->  '-0.0005'
147dqadd103 add '-5E-1'        0 ->  '-0.5'
148dqadd104 add '-5E0'         0 ->  '-5'
149dqadd105 add '-5E1'         0 ->  '-50'
150dqadd106 add '-5E5'         0 ->  '-500000'
151dqadd107 add '-5E33'        0 ->  '-5000000000000000000000000000000000'
152dqadd108 add '-5E34'        0 ->  '-5.000000000000000000000000000000000E+34'  Rounded
153dqadd109 add '-5E35'        0 ->  '-5.000000000000000000000000000000000E+35'  Rounded
154dqadd110 add '-5E36'        0 ->  '-5.000000000000000000000000000000000E+36'  Rounded
155dqadd111 add '-5E100'       0 ->  '-5.000000000000000000000000000000000E+100' Rounded
156
157-- more RHS swaps
158dqadd113 add 0  '-56267E-10' ->  '-0.0000056267'
159dqadd114 add 0  '-56267E-6'  ->  '-0.056267'
160dqadd116 add 0  '-56267E-5'  ->  '-0.56267'
161dqadd117 add 0  '-56267E-4'  ->  '-5.6267'
162dqadd119 add 0  '-56267E-3'  ->  '-56.267'
163dqadd120 add 0  '-56267E-2'  ->  '-562.67'
164dqadd121 add 0  '-56267E-1'  ->  '-5626.7'
165dqadd122 add 0  '-56267E-0'  ->  '-56267'
166dqadd123 add 0  '-5E-10'     ->  '-5E-10'
167dqadd124 add 0  '-5E-7'      ->  '-5E-7'
168dqadd125 add 0  '-5E-6'      ->  '-0.000005'
169dqadd126 add 0  '-5E-5'      ->  '-0.00005'
170dqadd127 add 0  '-5E-4'      ->  '-0.0005'
171dqadd128 add 0  '-5E-1'      ->  '-0.5'
172dqadd129 add 0  '-5E0'       ->  '-5'
173dqadd130 add 0  '-5E1'       ->  '-50'
174dqadd131 add 0  '-5E5'       ->  '-500000'
175dqadd132 add 0  '-5E33'      ->  '-5000000000000000000000000000000000'
176dqadd133 add 0  '-5E34'      ->  '-5.000000000000000000000000000000000E+34'   Rounded
177dqadd134 add 0  '-5E35'      ->  '-5.000000000000000000000000000000000E+35'   Rounded
178dqadd135 add 0  '-5E36'      ->  '-5.000000000000000000000000000000000E+36'   Rounded
179dqadd136 add 0  '-5E100'     ->  '-5.000000000000000000000000000000000E+100'  Rounded
180
181-- related
182dqadd137 add  1  '0E-39'      ->  '1.000000000000000000000000000000000'  Rounded
183dqadd138 add -1  '0E-39'      ->  '-1.000000000000000000000000000000000' Rounded
184dqadd139 add '0E-39' 1        ->  '1.000000000000000000000000000000000'  Rounded
185dqadd140 add '0E-39' -1       ->  '-1.000000000000000000000000000000000' Rounded
186dqadd141 add 1E+29   0.0000   ->  '100000000000000000000000000000.0000'
187dqadd142 add 1E+29   0.00000  ->  '100000000000000000000000000000.0000'  Rounded
188dqadd143 add 0.000   1E+30    ->  '1000000000000000000000000000000.000'
189dqadd144 add 0.0000  1E+30    ->  '1000000000000000000000000000000.000'  Rounded
190
191-- [some of the next group are really constructor tests]
192dqadd146 add '00.0'  0       ->  '0.0'
193dqadd147 add '0.00'  0       ->  '0.00'
194dqadd148 add  0      '0.00'  ->  '0.00'
195dqadd149 add  0      '00.0'  ->  '0.0'
196dqadd150 add '00.0'  '0.00'  ->  '0.00'
197dqadd151 add '0.00'  '00.0'  ->  '0.00'
198dqadd152 add '3'     '.3'    ->  '3.3'
199dqadd153 add '3.'    '.3'    ->  '3.3'
200dqadd154 add '3.0'   '.3'    ->  '3.3'
201dqadd155 add '3.00'  '.3'    ->  '3.30'
202dqadd156 add '3'     '3'     ->  '6'
203dqadd157 add '3'     '+3'    ->  '6'
204dqadd158 add '3'     '-3'    ->  '0'
205dqadd159 add '0.3'   '-0.3'  ->  '0.0'
206dqadd160 add '0.03'  '-0.03' ->  '0.00'
207
208-- try borderline precision, with carries, etc.
209dqadd161 add '1E+12' '-1'    -> '999999999999'
210dqadd162 add '1E+12'  '1.11' -> '1000000000001.11'
211dqadd163 add '1.11'  '1E+12' -> '1000000000001.11'
212dqadd164 add '-1'    '1E+12' -> '999999999999'
213dqadd165 add '7E+12' '-1'    -> '6999999999999'
214dqadd166 add '7E+12'  '1.11' -> '7000000000001.11'
215dqadd167 add '1.11'  '7E+12' -> '7000000000001.11'
216dqadd168 add '-1'    '7E+12' -> '6999999999999'
217
218rounding: half_up
219dqadd170 add '4.444444444444444444444444444444444'  '0.5555555555555555555555555555555567' -> '5.000000000000000000000000000000001' Inexact Rounded
220dqadd171 add '4.444444444444444444444444444444444'  '0.5555555555555555555555555555555566' -> '5.000000000000000000000000000000001' Inexact Rounded
221dqadd172 add '4.444444444444444444444444444444444'  '0.5555555555555555555555555555555565' -> '5.000000000000000000000000000000001' Inexact Rounded
222dqadd173 add '4.444444444444444444444444444444444'  '0.5555555555555555555555555555555564' -> '5.000000000000000000000000000000000' Inexact Rounded
223dqadd174 add '4.444444444444444444444444444444444'  '0.5555555555555555555555555555555553' -> '4.999999999999999999999999999999999' Inexact Rounded
224dqadd175 add '4.444444444444444444444444444444444'  '0.5555555555555555555555555555555552' -> '4.999999999999999999999999999999999' Inexact Rounded
225dqadd176 add '4.444444444444444444444444444444444'  '0.5555555555555555555555555555555551' -> '4.999999999999999999999999999999999' Inexact Rounded
226dqadd177 add '4.444444444444444444444444444444444'  '0.5555555555555555555555555555555550' -> '4.999999999999999999999999999999999' Rounded
227dqadd178 add '4.444444444444444444444444444444444'  '0.5555555555555555555555555555555545' -> '4.999999999999999999999999999999999' Inexact Rounded
228dqadd179 add '4.444444444444444444444444444444444'  '0.5555555555555555555555555555555544' -> '4.999999999999999999999999999999998' Inexact Rounded
229dqadd180 add '4.444444444444444444444444444444444'  '0.5555555555555555555555555555555543' -> '4.999999999999999999999999999999998' Inexact Rounded
230dqadd181 add '4.444444444444444444444444444444444'  '0.5555555555555555555555555555555542' -> '4.999999999999999999999999999999998' Inexact Rounded
231dqadd182 add '4.444444444444444444444444444444444'  '0.5555555555555555555555555555555541' -> '4.999999999999999999999999999999998' Inexact Rounded
232dqadd183 add '4.444444444444444444444444444444444'  '0.5555555555555555555555555555555540' -> '4.999999999999999999999999999999998' Rounded
233
234-- and some more, including residue effects and different roundings
235rounding: half_up
236dqadd200 add '1231234567890123456784560123456789' 0             -> '1231234567890123456784560123456789'
237dqadd201 add '1231234567890123456784560123456789' 0.000000001   -> '1231234567890123456784560123456789' Inexact Rounded
238dqadd202 add '1231234567890123456784560123456789' 0.000001      -> '1231234567890123456784560123456789' Inexact Rounded
239dqadd203 add '1231234567890123456784560123456789' 0.1           -> '1231234567890123456784560123456789' Inexact Rounded
240dqadd204 add '1231234567890123456784560123456789' 0.4           -> '1231234567890123456784560123456789' Inexact Rounded
241dqadd205 add '1231234567890123456784560123456789' 0.49          -> '1231234567890123456784560123456789' Inexact Rounded
242dqadd206 add '1231234567890123456784560123456789' 0.499999      -> '1231234567890123456784560123456789' Inexact Rounded
243dqadd207 add '1231234567890123456784560123456789' 0.499999999   -> '1231234567890123456784560123456789' Inexact Rounded
244dqadd208 add '1231234567890123456784560123456789' 0.5           -> '1231234567890123456784560123456790' Inexact Rounded
245dqadd209 add '1231234567890123456784560123456789' 0.500000001   -> '1231234567890123456784560123456790' Inexact Rounded
246dqadd210 add '1231234567890123456784560123456789' 0.500001      -> '1231234567890123456784560123456790' Inexact Rounded
247dqadd211 add '1231234567890123456784560123456789' 0.51          -> '1231234567890123456784560123456790' Inexact Rounded
248dqadd212 add '1231234567890123456784560123456789' 0.6           -> '1231234567890123456784560123456790' Inexact Rounded
249dqadd213 add '1231234567890123456784560123456789' 0.9           -> '1231234567890123456784560123456790' Inexact Rounded
250dqadd214 add '1231234567890123456784560123456789' 0.99999       -> '1231234567890123456784560123456790' Inexact Rounded
251dqadd215 add '1231234567890123456784560123456789' 0.999999999   -> '1231234567890123456784560123456790' Inexact Rounded
252dqadd216 add '1231234567890123456784560123456789' 1             -> '1231234567890123456784560123456790'
253dqadd217 add '1231234567890123456784560123456789' 1.000000001   -> '1231234567890123456784560123456790' Inexact Rounded
254dqadd218 add '1231234567890123456784560123456789' 1.00001       -> '1231234567890123456784560123456790' Inexact Rounded
255dqadd219 add '1231234567890123456784560123456789' 1.1           -> '1231234567890123456784560123456790' Inexact Rounded
256
257rounding: half_even
258dqadd220 add '1231234567890123456784560123456789' 0             -> '1231234567890123456784560123456789'
259dqadd221 add '1231234567890123456784560123456789' 0.000000001   -> '1231234567890123456784560123456789' Inexact Rounded
260dqadd222 add '1231234567890123456784560123456789' 0.000001      -> '1231234567890123456784560123456789' Inexact Rounded
261dqadd223 add '1231234567890123456784560123456789' 0.1           -> '1231234567890123456784560123456789' Inexact Rounded
262dqadd224 add '1231234567890123456784560123456789' 0.4           -> '1231234567890123456784560123456789' Inexact Rounded
263dqadd225 add '1231234567890123456784560123456789' 0.49          -> '1231234567890123456784560123456789' Inexact Rounded
264dqadd226 add '1231234567890123456784560123456789' 0.499999      -> '1231234567890123456784560123456789' Inexact Rounded
265dqadd227 add '1231234567890123456784560123456789' 0.499999999   -> '1231234567890123456784560123456789' Inexact Rounded
266dqadd228 add '1231234567890123456784560123456789' 0.5           -> '1231234567890123456784560123456790' Inexact Rounded
267dqadd229 add '1231234567890123456784560123456789' 0.500000001   -> '1231234567890123456784560123456790' Inexact Rounded
268dqadd230 add '1231234567890123456784560123456789' 0.500001      -> '1231234567890123456784560123456790' Inexact Rounded
269dqadd231 add '1231234567890123456784560123456789' 0.51          -> '1231234567890123456784560123456790' Inexact Rounded
270dqadd232 add '1231234567890123456784560123456789' 0.6           -> '1231234567890123456784560123456790' Inexact Rounded
271dqadd233 add '1231234567890123456784560123456789' 0.9           -> '1231234567890123456784560123456790' Inexact Rounded
272dqadd234 add '1231234567890123456784560123456789' 0.99999       -> '1231234567890123456784560123456790' Inexact Rounded
273dqadd235 add '1231234567890123456784560123456789' 0.999999999   -> '1231234567890123456784560123456790' Inexact Rounded
274dqadd236 add '1231234567890123456784560123456789' 1             -> '1231234567890123456784560123456790'
275dqadd237 add '1231234567890123456784560123456789' 1.00000001    -> '1231234567890123456784560123456790' Inexact Rounded
276dqadd238 add '1231234567890123456784560123456789' 1.00001       -> '1231234567890123456784560123456790' Inexact Rounded
277dqadd239 add '1231234567890123456784560123456789' 1.1           -> '1231234567890123456784560123456790' Inexact Rounded
278-- critical few with even bottom digit...
279dqadd240 add '1231234567890123456784560123456788' 0.499999999   -> '1231234567890123456784560123456788' Inexact Rounded
280dqadd241 add '1231234567890123456784560123456788' 0.5           -> '1231234567890123456784560123456788' Inexact Rounded
281dqadd242 add '1231234567890123456784560123456788' 0.500000001   -> '1231234567890123456784560123456789' Inexact Rounded
282
283rounding: down
284dqadd250 add '1231234567890123456784560123456789' 0             -> '1231234567890123456784560123456789'
285dqadd251 add '1231234567890123456784560123456789' 0.000000001   -> '1231234567890123456784560123456789' Inexact Rounded
286dqadd252 add '1231234567890123456784560123456789' 0.000001      -> '1231234567890123456784560123456789' Inexact Rounded
287dqadd253 add '1231234567890123456784560123456789' 0.1           -> '1231234567890123456784560123456789' Inexact Rounded
288dqadd254 add '1231234567890123456784560123456789' 0.4           -> '1231234567890123456784560123456789' Inexact Rounded
289dqadd255 add '1231234567890123456784560123456789' 0.49          -> '1231234567890123456784560123456789' Inexact Rounded
290dqadd256 add '1231234567890123456784560123456789' 0.499999      -> '1231234567890123456784560123456789' Inexact Rounded
291dqadd257 add '1231234567890123456784560123456789' 0.499999999   -> '1231234567890123456784560123456789' Inexact Rounded
292dqadd258 add '1231234567890123456784560123456789' 0.5           -> '1231234567890123456784560123456789' Inexact Rounded
293dqadd259 add '1231234567890123456784560123456789' 0.500000001   -> '1231234567890123456784560123456789' Inexact Rounded
294dqadd260 add '1231234567890123456784560123456789' 0.500001      -> '1231234567890123456784560123456789' Inexact Rounded
295dqadd261 add '1231234567890123456784560123456789' 0.51          -> '1231234567890123456784560123456789' Inexact Rounded
296dqadd262 add '1231234567890123456784560123456789' 0.6           -> '1231234567890123456784560123456789' Inexact Rounded
297dqadd263 add '1231234567890123456784560123456789' 0.9           -> '1231234567890123456784560123456789' Inexact Rounded
298dqadd264 add '1231234567890123456784560123456789' 0.99999       -> '1231234567890123456784560123456789' Inexact Rounded
299dqadd265 add '1231234567890123456784560123456789' 0.999999999   -> '1231234567890123456784560123456789' Inexact Rounded
300dqadd266 add '1231234567890123456784560123456789' 1             -> '1231234567890123456784560123456790'
301dqadd267 add '1231234567890123456784560123456789' 1.00000001    -> '1231234567890123456784560123456790' Inexact Rounded
302dqadd268 add '1231234567890123456784560123456789' 1.00001       -> '1231234567890123456784560123456790' Inexact Rounded
303dqadd269 add '1231234567890123456784560123456789' 1.1           -> '1231234567890123456784560123456790' Inexact Rounded
304
305-- 1 in last place tests
306rounding: half_up
307dqadd301 add  -1   1      ->   0
308dqadd302 add   0   1      ->   1
309dqadd303 add   1   1      ->   2
310dqadd304 add  12   1      ->  13
311dqadd305 add  98   1      ->  99
312dqadd306 add  99   1      -> 100
313dqadd307 add 100   1      -> 101
314dqadd308 add 101   1      -> 102
315dqadd309 add  -1  -1      ->  -2
316dqadd310 add   0  -1      ->  -1
317dqadd311 add   1  -1      ->   0
318dqadd312 add  12  -1      ->  11
319dqadd313 add  98  -1      ->  97
320dqadd314 add  99  -1      ->  98
321dqadd315 add 100  -1      ->  99
322dqadd316 add 101  -1      -> 100
323
324dqadd321 add -0.01  0.01    ->  0.00
325dqadd322 add  0.00  0.01    ->  0.01
326dqadd323 add  0.01  0.01    ->  0.02
327dqadd324 add  0.12  0.01    ->  0.13
328dqadd325 add  0.98  0.01    ->  0.99
329dqadd326 add  0.99  0.01    ->  1.00
330dqadd327 add  1.00  0.01    ->  1.01
331dqadd328 add  1.01  0.01    ->  1.02
332dqadd329 add -0.01 -0.01    -> -0.02
333dqadd330 add  0.00 -0.01    -> -0.01
334dqadd331 add  0.01 -0.01    ->  0.00
335dqadd332 add  0.12 -0.01    ->  0.11
336dqadd333 add  0.98 -0.01    ->  0.97
337dqadd334 add  0.99 -0.01    ->  0.98
338dqadd335 add  1.00 -0.01    ->  0.99
339dqadd336 add  1.01 -0.01    ->  1.00
340
341-- some more cases where adding 0 affects the coefficient
342dqadd340 add 1E+3    0    ->         1000
343dqadd341 add 1E+33   0    ->    1000000000000000000000000000000000
344dqadd342 add 1E+34   0    ->   1.000000000000000000000000000000000E+34  Rounded
345dqadd343 add 1E+35   0    ->   1.000000000000000000000000000000000E+35  Rounded
346-- which simply follow from these cases ...
347dqadd344 add 1E+3    1    ->         1001
348dqadd345 add 1E+33   1    ->    1000000000000000000000000000000001
349dqadd346 add 1E+34   1    ->   1.000000000000000000000000000000000E+34  Inexact Rounded
350dqadd347 add 1E+35   1    ->   1.000000000000000000000000000000000E+35  Inexact Rounded
351dqadd348 add 1E+3    7    ->         1007
352dqadd349 add 1E+33   7    ->    1000000000000000000000000000000007
353dqadd350 add 1E+34   7    ->   1.000000000000000000000000000000001E+34  Inexact Rounded
354dqadd351 add 1E+35   7    ->   1.000000000000000000000000000000000E+35  Inexact Rounded
355
356-- tryzeros cases
357rounding:    half_up
358dqadd360  add 0E+50 10000E+1  -> 1.0000E+5
359dqadd361  add 0E-50 10000E+1  -> 100000.0000000000000000000000000000 Rounded
360dqadd362  add 10000E+1 0E-50  -> 100000.0000000000000000000000000000 Rounded
361dqadd363  add 10000E+1 10000E-50  -> 100000.0000000000000000000000000000 Rounded Inexact
362dqadd364  add 9.999999999999999999999999999999999E+6144 -9.999999999999999999999999999999999E+6144 -> 0E+6111
363--            1 234567890123456789012345678901234
364
365-- a curiosity from JSR 13 testing
366rounding:    half_down
367dqadd370 add  999999999999999999999999999999999 815 -> 1000000000000000000000000000000814
368dqadd371 add 9999999999999999999999999999999999 815 -> 1.000000000000000000000000000000081E+34 Rounded Inexact
369rounding:    half_up
370dqadd372 add  999999999999999999999999999999999 815 -> 1000000000000000000000000000000814
371dqadd373 add 9999999999999999999999999999999999 815 -> 1.000000000000000000000000000000081E+34 Rounded Inexact
372rounding:    half_even
373dqadd374 add  999999999999999999999999999999999 815 -> 1000000000000000000000000000000814
374dqadd375 add 9999999999999999999999999999999999 815 -> 1.000000000000000000000000000000081E+34 Rounded Inexact
375
376-- ulp replacement tests
377dqadd400 add   1   77e-32      ->  1.00000000000000000000000000000077
378dqadd401 add   1   77e-33      ->  1.000000000000000000000000000000077
379dqadd402 add   1   77e-34      ->  1.000000000000000000000000000000008 Inexact Rounded
380dqadd403 add   1   77e-35      ->  1.000000000000000000000000000000001 Inexact Rounded
381dqadd404 add   1   77e-36      ->  1.000000000000000000000000000000000 Inexact Rounded
382dqadd405 add   1   77e-37      ->  1.000000000000000000000000000000000 Inexact Rounded
383dqadd406 add   1   77e-299     ->  1.000000000000000000000000000000000 Inexact Rounded
384
385dqadd410 add  10   77e-32      ->  10.00000000000000000000000000000077
386dqadd411 add  10   77e-33      ->  10.00000000000000000000000000000008 Inexact Rounded
387dqadd412 add  10   77e-34      ->  10.00000000000000000000000000000001 Inexact Rounded
388dqadd413 add  10   77e-35      ->  10.00000000000000000000000000000000 Inexact Rounded
389dqadd414 add  10   77e-36      ->  10.00000000000000000000000000000000 Inexact Rounded
390dqadd415 add  10   77e-37      ->  10.00000000000000000000000000000000 Inexact Rounded
391dqadd416 add  10   77e-299     ->  10.00000000000000000000000000000000 Inexact Rounded
392
393dqadd420 add  77e-32       1   ->  1.00000000000000000000000000000077
394dqadd421 add  77e-33       1   ->  1.000000000000000000000000000000077
395dqadd422 add  77e-34       1   ->  1.000000000000000000000000000000008 Inexact Rounded
396dqadd423 add  77e-35       1   ->  1.000000000000000000000000000000001 Inexact Rounded
397dqadd424 add  77e-36       1   ->  1.000000000000000000000000000000000 Inexact Rounded
398dqadd425 add  77e-37       1   ->  1.000000000000000000000000000000000 Inexact Rounded
399dqadd426 add  77e-299      1   ->  1.000000000000000000000000000000000 Inexact Rounded
400
401dqadd430 add  77e-32      10   ->  10.00000000000000000000000000000077
402dqadd431 add  77e-33      10   ->  10.00000000000000000000000000000008 Inexact Rounded
403dqadd432 add  77e-34      10   ->  10.00000000000000000000000000000001 Inexact Rounded
404dqadd433 add  77e-35      10   ->  10.00000000000000000000000000000000 Inexact Rounded
405dqadd434 add  77e-36      10   ->  10.00000000000000000000000000000000 Inexact Rounded
406dqadd435 add  77e-37      10   ->  10.00000000000000000000000000000000 Inexact Rounded
407dqadd436 add  77e-299     10   ->  10.00000000000000000000000000000000 Inexact Rounded
408
409-- fastpath boundaries
410--            1234567890123456789012345678901234
411dqadd501 add '4444444444444444444444444444444444'  '5555555555555555555555555555555555' -> '9999999999999999999999999999999999'
412dqadd502 add '4444444444444444444444444444444444'  '4555555555555555555555555555555555' -> '8999999999999999999999999999999999'
413dqadd503 add '4444444444444444444444444444444444'  '3555555555555555555055555555555555' -> '7999999999999999999499999999999999'
414dqadd504 add '4444444444444444444444444444444444'  '3955555555555555555555555555555555' -> '8399999999999999999999999999999999'
415dqadd505 add '4444444444444444444444444444444444'  '4955555555555555555555555555555555' -> '9399999999999999999999999999999999'
416dqadd506 add '4444444444444444444444444444444444'  '5955555555555555555555555555555555' -> 1.040000000000000000000000000000000E+34 Inexact Rounded
417dqadd511 add '344444444444444444444444444444444'  '555555555555555555555555555555555' -> '899999999999999999999999999999999'
418dqadd512 add '34444444444444444444444444444444'  '55555555555555555555555555555555' -> '89999999999999999999999999999999'
419dqadd513 add '3444444444444444444444444444444'  '5555555555555555555555555555555' -> '8999999999999999999999999999999'
420dqadd514 add '344444444444444444444444444444'  '555555555555555555555555555555' -> '899999999999999999999999999999'
421dqadd515 add '34444444444444444444444444444'  '55555555555555555555555555555' -> '89999999999999999999999999999'
422dqadd516 add '3444444444444444444444444444'  '5555555555555555555555555555' -> '8999999999999999999999999999'
423dqadd517 add '344444444444444444444444444'  '555555555555555555555555555' -> '899999999999999999999999999'
424dqadd518 add '34444444444444444444444444'  '55555555555555555555555555' -> '89999999999999999999999999'
425dqadd519 add '3444444444444444444444444'  '5555555555555555555555555' -> '8999999999999999999999999'
426dqadd520 add '344444444444444444444444'  '555555555555555555555555' -> '899999999999999999999999'
427dqadd521 add '34444444444444444444444'  '55555555555555555555555' -> '89999999999999999999999'
428dqadd522 add '3444444444444444444444'  '5555555555555555555555' -> '8999999999999999999999'
429dqadd523 add '4444444444444444444444'  '3333333333333333333333' -> '7777777777777777777777'
430dqadd524 add '344444444444444444444'  '555555555555555555555' -> '899999999999999999999'
431dqadd525 add '34444444444444444444'  '55555555555555555555' -> '89999999999999999999'
432dqadd526 add '3444444444444444444'  '5555555555555555555' -> '8999999999999999999'
433dqadd527 add '344444444444444444'  '555555555555555555' -> '899999999999999999'
434dqadd528 add '34444444444444444'  '55555555555555555' -> '89999999999999999'
435dqadd529 add '3444444444444444'  '5555555555555555' -> '8999999999999999'
436dqadd530 add '344444444444444'  '555555555555555' -> '899999999999999'
437dqadd531 add '34444444444444'  '55555555555555' -> '89999999999999'
438dqadd532 add '3444444444444'  '5555555555555' -> '8999999999999'
439dqadd533 add '344444444444'  '555555555555' -> '899999999999'
440dqadd534 add '34444444444'  '55555555555' -> '89999999999'
441dqadd535 add '3444444444'  '5555555555' -> '8999999999'
442dqadd536 add '344444444'  '555555555' -> '899999999'
443dqadd537 add '34444444'  '55555555' -> '89999999'
444dqadd538 add '3444444'  '5555555' -> '8999999'
445dqadd539 add '344444'  '555555' -> '899999'
446dqadd540 add '34444'  '55555' -> '89999'
447dqadd541 add '3444'  '5555' -> '8999'
448dqadd542 add '344'  '555' -> '899'
449dqadd543 add '34'  '55' -> '89'
450dqadd544 add '3'  '5' -> '8'
451
452dqadd545 add '3000004000000000000000000000000000'  '3000000000000040000000000000000000' -> '6000004000000040000000000000000000'
453dqadd546 add '3000000400000000000000000000000000'  '4000000000000400000000000000000000' -> '7000000400000400000000000000000000'
454dqadd547 add '3000000040000000000000000000000000'  '5000000000004000000000000000000000' -> '8000000040004000000000000000000000'
455dqadd548 add '4000000004000000000000000000000000'  '3000000000040000000000000000000000' -> '7000000004040000000000000000000000'
456dqadd549 add '4000000000400000000000000000000000'  '4000000000400000000000000000000000' -> '8000000000800000000000000000000000'
457dqadd550 add '4000000000040000000000000000000000'  '5000000004000000000000000000000000' -> '9000000004040000000000000000000000'
458dqadd551 add '5000000000004000000000000000000000'  '3000000040000000000000000000000000' -> '8000000040004000000000000000000000'
459dqadd552 add '5000000000000400000000000000000000'  '4000000400000000000000000000000000' -> '9000000400000400000000000000000000'
460dqadd553 add '5000000000000040000000000000000000'  '5000004000000000000000000000000000' -> 1.000000400000004000000000000000000E+34 Rounded
461-- check propagation
462dqadd554 add '8999999999999999999999999999999999'  '0000000000000000000000000000000001' ->  9000000000000000000000000000000000
463dqadd555 add '0000000000000000000000000000000001'  '8999999999999999999999999999999999' ->  9000000000000000000000000000000000
464dqadd556 add '4444444444444444444444444444444444'  '4555555555555555555555555555555556' ->  9000000000000000000000000000000000
465dqadd557 add '4555555555555555555555555555555556'  '4444444444444444444444444444444444' ->  9000000000000000000000000000000000
466
467-- negative ulps
468dqadd6440 add   1   -77e-32      ->  0.99999999999999999999999999999923
469dqadd6441 add   1   -77e-33      ->  0.999999999999999999999999999999923
470dqadd6442 add   1   -77e-34      ->  0.9999999999999999999999999999999923
471dqadd6443 add   1   -77e-35      ->  0.9999999999999999999999999999999992 Inexact Rounded
472dqadd6444 add   1   -77e-36      ->  0.9999999999999999999999999999999999 Inexact Rounded
473dqadd6445 add   1   -77e-37      ->  1.000000000000000000000000000000000 Inexact Rounded
474dqadd6446 add   1   -77e-99      ->  1.000000000000000000000000000000000 Inexact Rounded
475
476dqadd6450 add  10   -77e-32      ->   9.99999999999999999999999999999923
477dqadd6451 add  10   -77e-33      ->   9.999999999999999999999999999999923
478dqadd6452 add  10   -77e-34      ->   9.999999999999999999999999999999992 Inexact Rounded
479dqadd6453 add  10   -77e-35      ->   9.999999999999999999999999999999999 Inexact Rounded
480dqadd6454 add  10   -77e-36      ->  10.00000000000000000000000000000000 Inexact Rounded
481dqadd6455 add  10   -77e-37      ->  10.00000000000000000000000000000000 Inexact Rounded
482dqadd6456 add  10   -77e-99      ->  10.00000000000000000000000000000000 Inexact Rounded
483
484dqadd6460 add  -77e-32       1   ->  0.99999999999999999999999999999923
485dqadd6461 add  -77e-33       1   ->  0.999999999999999999999999999999923
486dqadd6462 add  -77e-34       1   ->  0.9999999999999999999999999999999923
487dqadd6463 add  -77e-35       1   ->  0.9999999999999999999999999999999992 Inexact Rounded
488dqadd6464 add  -77e-36       1   ->  0.9999999999999999999999999999999999 Inexact Rounded
489dqadd6465 add  -77e-37       1   ->  1.000000000000000000000000000000000 Inexact Rounded
490dqadd6466 add  -77e-99       1   ->  1.000000000000000000000000000000000 Inexact Rounded
491
492dqadd6470 add  -77e-32      10   ->   9.99999999999999999999999999999923
493dqadd6471 add  -77e-33      10   ->   9.999999999999999999999999999999923
494dqadd6472 add  -77e-34      10   ->   9.999999999999999999999999999999992 Inexact Rounded
495dqadd6473 add  -77e-35      10   ->   9.999999999999999999999999999999999 Inexact Rounded
496dqadd6474 add  -77e-36      10   ->  10.00000000000000000000000000000000 Inexact Rounded
497dqadd6475 add  -77e-37      10   ->  10.00000000000000000000000000000000 Inexact Rounded
498dqadd6476 add  -77e-99      10   ->  10.00000000000000000000000000000000 Inexact Rounded
499
500-- negative ulps
501dqadd6480 add  -1    77e-32      ->  -0.99999999999999999999999999999923
502dqadd6481 add  -1    77e-33      ->  -0.999999999999999999999999999999923
503dqadd6482 add  -1    77e-34      ->  -0.9999999999999999999999999999999923
504dqadd6483 add  -1    77e-35      ->  -0.9999999999999999999999999999999992 Inexact Rounded
505dqadd6484 add  -1    77e-36      ->  -0.9999999999999999999999999999999999 Inexact Rounded
506dqadd6485 add  -1    77e-37      ->  -1.000000000000000000000000000000000 Inexact Rounded
507dqadd6486 add  -1    77e-99      ->  -1.000000000000000000000000000000000 Inexact Rounded
508
509dqadd6490 add -10    77e-32      ->   -9.99999999999999999999999999999923
510dqadd6491 add -10    77e-33      ->   -9.999999999999999999999999999999923
511dqadd6492 add -10    77e-34      ->   -9.999999999999999999999999999999992 Inexact Rounded
512dqadd6493 add -10    77e-35      ->   -9.999999999999999999999999999999999 Inexact Rounded
513dqadd6494 add -10    77e-36      ->  -10.00000000000000000000000000000000 Inexact Rounded
514dqadd6495 add -10    77e-37      ->  -10.00000000000000000000000000000000 Inexact Rounded
515dqadd6496 add -10    77e-99      ->  -10.00000000000000000000000000000000 Inexact Rounded
516
517dqadd6500 add   77e-32      -1   ->  -0.99999999999999999999999999999923
518dqadd6501 add   77e-33      -1   ->  -0.999999999999999999999999999999923
519dqadd6502 add   77e-34      -1   ->  -0.9999999999999999999999999999999923
520dqadd6503 add   77e-35      -1   ->  -0.9999999999999999999999999999999992 Inexact Rounded
521dqadd6504 add   77e-36      -1   ->  -0.9999999999999999999999999999999999 Inexact Rounded
522dqadd6505 add   77e-37      -1   ->  -1.000000000000000000000000000000000 Inexact Rounded
523dqadd6506 add   77e-99      -1   ->  -1.000000000000000000000000000000000 Inexact Rounded
524
525dqadd6510 add   77e-32      -10  ->   -9.99999999999999999999999999999923
526dqadd6511 add   77e-33      -10  ->   -9.999999999999999999999999999999923
527dqadd6512 add   77e-34      -10  ->   -9.999999999999999999999999999999992 Inexact Rounded
528dqadd6513 add   77e-35      -10  ->   -9.999999999999999999999999999999999 Inexact Rounded
529dqadd6514 add   77e-36      -10  ->  -10.00000000000000000000000000000000 Inexact Rounded
530dqadd6515 add   77e-37      -10  ->  -10.00000000000000000000000000000000 Inexact Rounded
531dqadd6516 add   77e-99      -10  ->  -10.00000000000000000000000000000000 Inexact Rounded
532
533-- and some more residue effects and different roundings
534rounding: half_up
535dqadd6540 add '9876543219876543216543210123456789' 0             -> '9876543219876543216543210123456789'
536dqadd6541 add '9876543219876543216543210123456789' 0.000000001   -> '9876543219876543216543210123456789' Inexact Rounded
537dqadd6542 add '9876543219876543216543210123456789' 0.000001      -> '9876543219876543216543210123456789' Inexact Rounded
538dqadd6543 add '9876543219876543216543210123456789' 0.1           -> '9876543219876543216543210123456789' Inexact Rounded
539dqadd6544 add '9876543219876543216543210123456789' 0.4           -> '9876543219876543216543210123456789' Inexact Rounded
540dqadd6545 add '9876543219876543216543210123456789' 0.49          -> '9876543219876543216543210123456789' Inexact Rounded
541dqadd6546 add '9876543219876543216543210123456789' 0.499999      -> '9876543219876543216543210123456789' Inexact Rounded
542dqadd6547 add '9876543219876543216543210123456789' 0.499999999   -> '9876543219876543216543210123456789' Inexact Rounded
543dqadd6548 add '9876543219876543216543210123456789' 0.5           -> '9876543219876543216543210123456790' Inexact Rounded
544dqadd6549 add '9876543219876543216543210123456789' 0.500000001   -> '9876543219876543216543210123456790' Inexact Rounded
545dqadd6550 add '9876543219876543216543210123456789' 0.500001      -> '9876543219876543216543210123456790' Inexact Rounded
546dqadd6551 add '9876543219876543216543210123456789' 0.51          -> '9876543219876543216543210123456790' Inexact Rounded
547dqadd6552 add '9876543219876543216543210123456789' 0.6           -> '9876543219876543216543210123456790' Inexact Rounded
548dqadd6553 add '9876543219876543216543210123456789' 0.9           -> '9876543219876543216543210123456790' Inexact Rounded
549dqadd6554 add '9876543219876543216543210123456789' 0.99999       -> '9876543219876543216543210123456790' Inexact Rounded
550dqadd6555 add '9876543219876543216543210123456789' 0.999999999   -> '9876543219876543216543210123456790' Inexact Rounded
551dqadd6556 add '9876543219876543216543210123456789' 1             -> '9876543219876543216543210123456790'
552dqadd6557 add '9876543219876543216543210123456789' 1.000000001   -> '9876543219876543216543210123456790' Inexact Rounded
553dqadd6558 add '9876543219876543216543210123456789' 1.00001       -> '9876543219876543216543210123456790' Inexact Rounded
554dqadd6559 add '9876543219876543216543210123456789' 1.1           -> '9876543219876543216543210123456790' Inexact Rounded
555
556rounding: half_even
557dqadd6560 add '9876543219876543216543210123456789' 0             -> '9876543219876543216543210123456789'
558dqadd6561 add '9876543219876543216543210123456789' 0.000000001   -> '9876543219876543216543210123456789' Inexact Rounded
559dqadd6562 add '9876543219876543216543210123456789' 0.000001      -> '9876543219876543216543210123456789' Inexact Rounded
560dqadd6563 add '9876543219876543216543210123456789' 0.1           -> '9876543219876543216543210123456789' Inexact Rounded
561dqadd6564 add '9876543219876543216543210123456789' 0.4           -> '9876543219876543216543210123456789' Inexact Rounded
562dqadd6565 add '9876543219876543216543210123456789' 0.49          -> '9876543219876543216543210123456789' Inexact Rounded
563dqadd6566 add '9876543219876543216543210123456789' 0.499999      -> '9876543219876543216543210123456789' Inexact Rounded
564dqadd6567 add '9876543219876543216543210123456789' 0.499999999   -> '9876543219876543216543210123456789' Inexact Rounded
565dqadd6568 add '9876543219876543216543210123456789' 0.5           -> '9876543219876543216543210123456790' Inexact Rounded
566dqadd6569 add '9876543219876543216543210123456789' 0.500000001   -> '9876543219876543216543210123456790' Inexact Rounded
567dqadd6570 add '9876543219876543216543210123456789' 0.500001      -> '9876543219876543216543210123456790' Inexact Rounded
568dqadd6571 add '9876543219876543216543210123456789' 0.51          -> '9876543219876543216543210123456790' Inexact Rounded
569dqadd6572 add '9876543219876543216543210123456789' 0.6           -> '9876543219876543216543210123456790' Inexact Rounded
570dqadd6573 add '9876543219876543216543210123456789' 0.9           -> '9876543219876543216543210123456790' Inexact Rounded
571dqadd6574 add '9876543219876543216543210123456789' 0.99999       -> '9876543219876543216543210123456790' Inexact Rounded
572dqadd6575 add '9876543219876543216543210123456789' 0.999999999   -> '9876543219876543216543210123456790' Inexact Rounded
573dqadd6576 add '9876543219876543216543210123456789' 1             -> '9876543219876543216543210123456790'
574dqadd6577 add '9876543219876543216543210123456789' 1.00000001    -> '9876543219876543216543210123456790' Inexact Rounded
575dqadd6578 add '9876543219876543216543210123456789' 1.00001       -> '9876543219876543216543210123456790' Inexact Rounded
576dqadd6579 add '9876543219876543216543210123456789' 1.1           -> '9876543219876543216543210123456790' Inexact Rounded
577
578-- critical few with even bottom digit...
579dqadd7540 add '9876543219876543216543210123456788' 0.499999999   -> '9876543219876543216543210123456788' Inexact Rounded
580dqadd7541 add '9876543219876543216543210123456788' 0.5           -> '9876543219876543216543210123456788' Inexact Rounded
581dqadd7542 add '9876543219876543216543210123456788' 0.500000001   -> '9876543219876543216543210123456789' Inexact Rounded
582
583rounding: down
584dqadd7550 add '9876543219876543216543210123456789' 0             -> '9876543219876543216543210123456789'
585dqadd7551 add '9876543219876543216543210123456789' 0.000000001   -> '9876543219876543216543210123456789' Inexact Rounded
586dqadd7552 add '9876543219876543216543210123456789' 0.000001      -> '9876543219876543216543210123456789' Inexact Rounded
587dqadd7553 add '9876543219876543216543210123456789' 0.1           -> '9876543219876543216543210123456789' Inexact Rounded
588dqadd7554 add '9876543219876543216543210123456789' 0.4           -> '9876543219876543216543210123456789' Inexact Rounded
589dqadd7555 add '9876543219876543216543210123456789' 0.49          -> '9876543219876543216543210123456789' Inexact Rounded
590dqadd7556 add '9876543219876543216543210123456789' 0.499999      -> '9876543219876543216543210123456789' Inexact Rounded
591dqadd7557 add '9876543219876543216543210123456789' 0.499999999   -> '9876543219876543216543210123456789' Inexact Rounded
592dqadd7558 add '9876543219876543216543210123456789' 0.5           -> '9876543219876543216543210123456789' Inexact Rounded
593dqadd7559 add '9876543219876543216543210123456789' 0.500000001   -> '9876543219876543216543210123456789' Inexact Rounded
594dqadd7560 add '9876543219876543216543210123456789' 0.500001      -> '9876543219876543216543210123456789' Inexact Rounded
595dqadd7561 add '9876543219876543216543210123456789' 0.51          -> '9876543219876543216543210123456789' Inexact Rounded
596dqadd7562 add '9876543219876543216543210123456789' 0.6           -> '9876543219876543216543210123456789' Inexact Rounded
597dqadd7563 add '9876543219876543216543210123456789' 0.9           -> '9876543219876543216543210123456789' Inexact Rounded
598dqadd7564 add '9876543219876543216543210123456789' 0.99999       -> '9876543219876543216543210123456789' Inexact Rounded
599dqadd7565 add '9876543219876543216543210123456789' 0.999999999   -> '9876543219876543216543210123456789' Inexact Rounded
600dqadd7566 add '9876543219876543216543210123456789' 1             -> '9876543219876543216543210123456790'
601dqadd7567 add '9876543219876543216543210123456789' 1.00000001    -> '9876543219876543216543210123456790' Inexact Rounded
602dqadd7568 add '9876543219876543216543210123456789' 1.00001       -> '9876543219876543216543210123456790' Inexact Rounded
603dqadd7569 add '9876543219876543216543210123456789' 1.1           -> '9876543219876543216543210123456790' Inexact Rounded
604
605-- more zeros, etc.
606rounding: half_even
607
608dqadd7701 add 5.00 1.00E-3 -> 5.00100
609dqadd7702 add 00.00 0.000  -> 0.000
610dqadd7703 add 00.00 0E-3   -> 0.000
611dqadd7704 add 0E-3  00.00  -> 0.000
612
613dqadd7710 add 0E+3  00.00  -> 0.00
614dqadd7711 add 0E+3  00.0   -> 0.0
615dqadd7712 add 0E+3  00.    -> 0
616dqadd7713 add 0E+3  00.E+1 -> 0E+1
617dqadd7714 add 0E+3  00.E+2 -> 0E+2
618dqadd7715 add 0E+3  00.E+3 -> 0E+3
619dqadd7716 add 0E+3  00.E+4 -> 0E+3
620dqadd7717 add 0E+3  00.E+5 -> 0E+3
621dqadd7718 add 0E+3  -00.0   -> 0.0
622dqadd7719 add 0E+3  -00.    -> 0
623dqadd7731 add 0E+3  -00.E+1 -> 0E+1
624
625dqadd7720 add 00.00  0E+3  -> 0.00
626dqadd7721 add 00.0   0E+3  -> 0.0
627dqadd7722 add 00.    0E+3  -> 0
628dqadd7723 add 00.E+1 0E+3  -> 0E+1
629dqadd7724 add 00.E+2 0E+3  -> 0E+2
630dqadd7725 add 00.E+3 0E+3  -> 0E+3
631dqadd7726 add 00.E+4 0E+3  -> 0E+3
632dqadd7727 add 00.E+5 0E+3  -> 0E+3
633dqadd7728 add -00.00 0E+3  -> 0.00
634dqadd7729 add -00.0  0E+3  -> 0.0
635dqadd7730 add -00.   0E+3  -> 0
636
637dqadd7732 add  0     0     ->  0
638dqadd7733 add  0    -0     ->  0
639dqadd7734 add -0     0     ->  0
640dqadd7735 add -0    -0     -> -0     -- IEEE 754 special case
641
642dqadd7736 add  1    -1     ->  0
643dqadd7737 add -1    -1     -> -2
644dqadd7738 add  1     1     ->  2
645dqadd7739 add -1     1     ->  0
646
647dqadd7741 add  0    -1     -> -1
648dqadd7742 add -0    -1     -> -1
649dqadd7743 add  0     1     ->  1
650dqadd7744 add -0     1     ->  1
651dqadd7745 add -1     0     -> -1
652dqadd7746 add -1    -0     -> -1
653dqadd7747 add  1     0     ->  1
654dqadd7748 add  1    -0     ->  1
655
656dqadd7751 add  0.0  -1     -> -1.0
657dqadd7752 add -0.0  -1     -> -1.0
658dqadd7753 add  0.0   1     ->  1.0
659dqadd7754 add -0.0   1     ->  1.0
660dqadd7755 add -1.0   0     -> -1.0
661dqadd7756 add -1.0  -0     -> -1.0
662dqadd7757 add  1.0   0     ->  1.0
663dqadd7758 add  1.0  -0     ->  1.0
664
665dqadd7761 add  0    -1.0   -> -1.0
666dqadd7762 add -0    -1.0   -> -1.0
667dqadd7763 add  0     1.0   ->  1.0
668dqadd7764 add -0     1.0   ->  1.0
669dqadd7765 add -1     0.0   -> -1.0
670dqadd7766 add -1    -0.0   -> -1.0
671dqadd7767 add  1     0.0   ->  1.0
672dqadd7768 add  1    -0.0   ->  1.0
673
674dqadd7771 add  0.0  -1.0   -> -1.0
675dqadd7772 add -0.0  -1.0   -> -1.0
676dqadd7773 add  0.0   1.0   ->  1.0
677dqadd7774 add -0.0   1.0   ->  1.0
678dqadd7775 add -1.0   0.0   -> -1.0
679dqadd7776 add -1.0  -0.0   -> -1.0
680dqadd7777 add  1.0   0.0   ->  1.0
681dqadd7778 add  1.0  -0.0   ->  1.0
682
683-- Specials
684dqadd7780 add -Inf  -Inf   -> -Infinity
685dqadd7781 add -Inf  -1000  -> -Infinity
686dqadd7782 add -Inf  -1     -> -Infinity
687dqadd7783 add -Inf  -0     -> -Infinity
688dqadd7784 add -Inf   0     -> -Infinity
689dqadd7785 add -Inf   1     -> -Infinity
690dqadd7786 add -Inf   1000  -> -Infinity
691dqadd7787 add -1000 -Inf   -> -Infinity
692dqadd7788 add -Inf  -Inf   -> -Infinity
693dqadd7789 add -1    -Inf   -> -Infinity
694dqadd7790 add -0    -Inf   -> -Infinity
695dqadd7791 add  0    -Inf   -> -Infinity
696dqadd7792 add  1    -Inf   -> -Infinity
697dqadd7793 add  1000 -Inf   -> -Infinity
698dqadd7794 add  Inf  -Inf   ->  NaN  Invalid_operation
699
700dqadd7800 add  Inf  -Inf   ->  NaN  Invalid_operation
701dqadd7801 add  Inf  -1000  ->  Infinity
702dqadd7802 add  Inf  -1     ->  Infinity
703dqadd7803 add  Inf  -0     ->  Infinity
704dqadd7804 add  Inf   0     ->  Infinity
705dqadd7805 add  Inf   1     ->  Infinity
706dqadd7806 add  Inf   1000  ->  Infinity
707dqadd7807 add  Inf   Inf   ->  Infinity
708dqadd7808 add -1000  Inf   ->  Infinity
709dqadd7809 add -Inf   Inf   ->  NaN  Invalid_operation
710dqadd7810 add -1     Inf   ->  Infinity
711dqadd7811 add -0     Inf   ->  Infinity
712dqadd7812 add  0     Inf   ->  Infinity
713dqadd7813 add  1     Inf   ->  Infinity
714dqadd7814 add  1000  Inf   ->  Infinity
715dqadd7815 add  Inf   Inf   ->  Infinity
716
717dqadd7821 add  NaN -Inf    ->  NaN
718dqadd7822 add  NaN -1000   ->  NaN
719dqadd7823 add  NaN -1      ->  NaN
720dqadd7824 add  NaN -0      ->  NaN
721dqadd7825 add  NaN  0      ->  NaN
722dqadd7826 add  NaN  1      ->  NaN
723dqadd7827 add  NaN  1000   ->  NaN
724dqadd7828 add  NaN  Inf    ->  NaN
725dqadd7829 add  NaN  NaN    ->  NaN
726dqadd7830 add -Inf  NaN    ->  NaN
727dqadd7831 add -1000 NaN    ->  NaN
728dqadd7832 add -1    NaN    ->  NaN
729dqadd7833 add -0    NaN    ->  NaN
730dqadd7834 add  0    NaN    ->  NaN
731dqadd7835 add  1    NaN    ->  NaN
732dqadd7836 add  1000 NaN    ->  NaN
733dqadd7837 add  Inf  NaN    ->  NaN
734
735dqadd7841 add  sNaN -Inf   ->  NaN  Invalid_operation
736dqadd7842 add  sNaN -1000  ->  NaN  Invalid_operation
737dqadd7843 add  sNaN -1     ->  NaN  Invalid_operation
738dqadd7844 add  sNaN -0     ->  NaN  Invalid_operation
739dqadd7845 add  sNaN  0     ->  NaN  Invalid_operation
740dqadd7846 add  sNaN  1     ->  NaN  Invalid_operation
741dqadd7847 add  sNaN  1000  ->  NaN  Invalid_operation
742dqadd7848 add  sNaN  NaN   ->  NaN  Invalid_operation
743dqadd7849 add  sNaN sNaN   ->  NaN  Invalid_operation
744dqadd7850 add  NaN  sNaN   ->  NaN  Invalid_operation
745dqadd7851 add -Inf  sNaN   ->  NaN  Invalid_operation
746dqadd7852 add -1000 sNaN   ->  NaN  Invalid_operation
747dqadd7853 add -1    sNaN   ->  NaN  Invalid_operation
748dqadd7854 add -0    sNaN   ->  NaN  Invalid_operation
749dqadd7855 add  0    sNaN   ->  NaN  Invalid_operation
750dqadd7856 add  1    sNaN   ->  NaN  Invalid_operation
751dqadd7857 add  1000 sNaN   ->  NaN  Invalid_operation
752dqadd7858 add  Inf  sNaN   ->  NaN  Invalid_operation
753dqadd7859 add  NaN  sNaN   ->  NaN  Invalid_operation
754
755-- propagating NaNs
756dqadd7861 add  NaN1   -Inf    ->  NaN1
757dqadd7862 add +NaN2   -1000   ->  NaN2
758dqadd7863 add  NaN3    1000   ->  NaN3
759dqadd7864 add  NaN4    Inf    ->  NaN4
760dqadd7865 add  NaN5   +NaN6   ->  NaN5
761dqadd7866 add -Inf     NaN7   ->  NaN7
762dqadd7867 add -1000    NaN8   ->  NaN8
763dqadd7868 add  1000    NaN9   ->  NaN9
764dqadd7869 add  Inf    +NaN10  ->  NaN10
765dqadd7871 add  sNaN11  -Inf   ->  NaN11  Invalid_operation
766dqadd7872 add  sNaN12  -1000  ->  NaN12  Invalid_operation
767dqadd7873 add  sNaN13   1000  ->  NaN13  Invalid_operation
768dqadd7874 add  sNaN14   NaN17 ->  NaN14  Invalid_operation
769dqadd7875 add  sNaN15  sNaN18 ->  NaN15  Invalid_operation
770dqadd7876 add  NaN16   sNaN19 ->  NaN19  Invalid_operation
771dqadd7877 add -Inf    +sNaN20 ->  NaN20  Invalid_operation
772dqadd7878 add -1000    sNaN21 ->  NaN21  Invalid_operation
773dqadd7879 add  1000    sNaN22 ->  NaN22  Invalid_operation
774dqadd7880 add  Inf     sNaN23 ->  NaN23  Invalid_operation
775dqadd7881 add +NaN25  +sNaN24 ->  NaN24  Invalid_operation
776dqadd7882 add -NaN26    NaN28 -> -NaN26
777dqadd7883 add -sNaN27  sNaN29 -> -NaN27  Invalid_operation
778dqadd7884 add  1000    -NaN30 -> -NaN30
779dqadd7885 add  1000   -sNaN31 -> -NaN31  Invalid_operation
780
781-- Here we explore near the boundary of rounding a subnormal to Nmin
782dqadd7575 add  1E-6143 -1E-6176 ->  9.99999999999999999999999999999999E-6144 Subnormal
783dqadd7576 add -1E-6143 +1E-6176 -> -9.99999999999999999999999999999999E-6144 Subnormal
784
785-- check overflow edge case
786--               1234567890123456
787dqadd7972 apply   9.999999999999999999999999999999999E+6144         -> 9.999999999999999999999999999999999E+6144
788dqadd7973 add     9.999999999999999999999999999999999E+6144  1      -> 9.999999999999999999999999999999999E+6144 Inexact Rounded
789dqadd7974 add      9999999999999999999999999999999999E+6111  1      -> 9.999999999999999999999999999999999E+6144 Inexact Rounded
790dqadd7975 add      9999999999999999999999999999999999E+6111  1E+6111  -> Infinity Overflow Inexact Rounded
791dqadd7976 add      9999999999999999999999999999999999E+6111  9E+6110  -> Infinity Overflow Inexact Rounded
792dqadd7977 add      9999999999999999999999999999999999E+6111  8E+6110  -> Infinity Overflow Inexact Rounded
793dqadd7978 add      9999999999999999999999999999999999E+6111  7E+6110  -> Infinity Overflow Inexact Rounded
794dqadd7979 add      9999999999999999999999999999999999E+6111  6E+6110  -> Infinity Overflow Inexact Rounded
795dqadd7980 add      9999999999999999999999999999999999E+6111  5E+6110  -> Infinity Overflow Inexact Rounded
796dqadd7981 add      9999999999999999999999999999999999E+6111  4E+6110  -> 9.999999999999999999999999999999999E+6144 Inexact Rounded
797dqadd7982 add      9999999999999999999999999999999999E+6111  3E+6110  -> 9.999999999999999999999999999999999E+6144 Inexact Rounded
798dqadd7983 add      9999999999999999999999999999999999E+6111  2E+6110  -> 9.999999999999999999999999999999999E+6144 Inexact Rounded
799dqadd7984 add      9999999999999999999999999999999999E+6111  1E+6110  -> 9.999999999999999999999999999999999E+6144 Inexact Rounded
800
801dqadd7985 apply  -9.999999999999999999999999999999999E+6144         -> -9.999999999999999999999999999999999E+6144
802dqadd7986 add    -9.999999999999999999999999999999999E+6144 -1      -> -9.999999999999999999999999999999999E+6144 Inexact Rounded
803dqadd7987 add     -9999999999999999999999999999999999E+6111 -1      -> -9.999999999999999999999999999999999E+6144 Inexact Rounded
804dqadd7988 add     -9999999999999999999999999999999999E+6111 -1E+6111  -> -Infinity Overflow Inexact Rounded
805dqadd7989 add     -9999999999999999999999999999999999E+6111 -9E+6110  -> -Infinity Overflow Inexact Rounded
806dqadd7990 add     -9999999999999999999999999999999999E+6111 -8E+6110  -> -Infinity Overflow Inexact Rounded
807dqadd7991 add     -9999999999999999999999999999999999E+6111 -7E+6110  -> -Infinity Overflow Inexact Rounded
808dqadd7992 add     -9999999999999999999999999999999999E+6111 -6E+6110  -> -Infinity Overflow Inexact Rounded
809dqadd7993 add     -9999999999999999999999999999999999E+6111 -5E+6110  -> -Infinity Overflow Inexact Rounded
810dqadd7994 add     -9999999999999999999999999999999999E+6111 -4E+6110  -> -9.999999999999999999999999999999999E+6144 Inexact Rounded
811dqadd7995 add     -9999999999999999999999999999999999E+6111 -3E+6110  -> -9.999999999999999999999999999999999E+6144 Inexact Rounded
812dqadd7996 add     -9999999999999999999999999999999999E+6111 -2E+6110  -> -9.999999999999999999999999999999999E+6144 Inexact Rounded
813dqadd7997 add     -9999999999999999999999999999999999E+6111 -1E+6110  -> -9.999999999999999999999999999999999E+6144 Inexact Rounded
814
815-- And for round down full and subnormal results
816rounding:     down
817dqadd71100 add 1e+2 -1e-6143    -> 99.99999999999999999999999999999999 Rounded Inexact
818dqadd71101 add 1e+1 -1e-6143    -> 9.999999999999999999999999999999999  Rounded Inexact
819dqadd71103 add   +1 -1e-6143    -> 0.9999999999999999999999999999999999  Rounded Inexact
820dqadd71104 add 1e-1 -1e-6143    -> 0.09999999999999999999999999999999999  Rounded Inexact
821dqadd71105 add 1e-2 -1e-6143    -> 0.009999999999999999999999999999999999  Rounded Inexact
822dqadd71106 add 1e-3 -1e-6143    -> 0.0009999999999999999999999999999999999  Rounded Inexact
823dqadd71107 add 1e-4 -1e-6143    -> 0.00009999999999999999999999999999999999  Rounded Inexact
824dqadd71108 add 1e-5 -1e-6143    -> 0.000009999999999999999999999999999999999  Rounded Inexact
825dqadd71109 add 1e-6 -1e-6143    -> 9.999999999999999999999999999999999E-7  Rounded Inexact
826
827rounding:     ceiling
828dqadd71110 add -1e+2 +1e-6143   -> -99.99999999999999999999999999999999 Rounded Inexact
829dqadd71111 add -1e+1 +1e-6143   -> -9.999999999999999999999999999999999  Rounded Inexact
830dqadd71113 add    -1 +1e-6143   -> -0.9999999999999999999999999999999999  Rounded Inexact
831dqadd71114 add -1e-1 +1e-6143   -> -0.09999999999999999999999999999999999  Rounded Inexact
832dqadd71115 add -1e-2 +1e-6143   -> -0.009999999999999999999999999999999999  Rounded Inexact
833dqadd71116 add -1e-3 +1e-6143   -> -0.0009999999999999999999999999999999999  Rounded Inexact
834dqadd71117 add -1e-4 +1e-6143   -> -0.00009999999999999999999999999999999999  Rounded Inexact
835dqadd71118 add -1e-5 +1e-6143   -> -0.000009999999999999999999999999999999999  Rounded Inexact
836dqadd71119 add -1e-6 +1e-6143   -> -9.999999999999999999999999999999999E-7  Rounded Inexact
837
838-- tests based on Gunnar Degnbol's edge case
839rounding:     half_even
840
841dqadd71300 add 1E34  -0.5                 ->  1.000000000000000000000000000000000E+34 Inexact Rounded
842dqadd71310 add 1E34  -0.51                ->  9999999999999999999999999999999999      Inexact Rounded
843dqadd71311 add 1E34  -0.501               ->  9999999999999999999999999999999999      Inexact Rounded
844dqadd71312 add 1E34  -0.5001              ->  9999999999999999999999999999999999      Inexact Rounded
845dqadd71313 add 1E34  -0.50001             ->  9999999999999999999999999999999999      Inexact Rounded
846dqadd71314 add 1E34  -0.500001            ->  9999999999999999999999999999999999      Inexact Rounded
847dqadd71315 add 1E34  -0.5000001           ->  9999999999999999999999999999999999      Inexact Rounded
848dqadd71316 add 1E34  -0.50000001          ->  9999999999999999999999999999999999      Inexact Rounded
849dqadd71317 add 1E34  -0.500000001         ->  9999999999999999999999999999999999      Inexact Rounded
850dqadd71318 add 1E34  -0.5000000001        ->  9999999999999999999999999999999999      Inexact Rounded
851dqadd71319 add 1E34  -0.50000000001       ->  9999999999999999999999999999999999      Inexact Rounded
852dqadd71320 add 1E34  -0.500000000001      ->  9999999999999999999999999999999999      Inexact Rounded
853dqadd71321 add 1E34  -0.5000000000001     ->  9999999999999999999999999999999999      Inexact Rounded
854dqadd71322 add 1E34  -0.50000000000001    ->  9999999999999999999999999999999999      Inexact Rounded
855dqadd71323 add 1E34  -0.500000000000001   ->  9999999999999999999999999999999999      Inexact Rounded
856dqadd71324 add 1E34  -0.5000000000000001  ->  9999999999999999999999999999999999      Inexact Rounded
857dqadd71325 add 1E34  -0.5000000000000000  ->  1.000000000000000000000000000000000E+34 Inexact Rounded
858dqadd71326 add 1E34  -0.500000000000000   ->  1.000000000000000000000000000000000E+34 Inexact Rounded
859dqadd71327 add 1E34  -0.50000000000000    ->  1.000000000000000000000000000000000E+34 Inexact Rounded
860dqadd71328 add 1E34  -0.5000000000000     ->  1.000000000000000000000000000000000E+34 Inexact Rounded
861dqadd71329 add 1E34  -0.500000000000      ->  1.000000000000000000000000000000000E+34 Inexact Rounded
862dqadd71330 add 1E34  -0.50000000000       ->  1.000000000000000000000000000000000E+34 Inexact Rounded
863dqadd71331 add 1E34  -0.5000000000        ->  1.000000000000000000000000000000000E+34 Inexact Rounded
864dqadd71332 add 1E34  -0.500000000         ->  1.000000000000000000000000000000000E+34 Inexact Rounded
865dqadd71333 add 1E34  -0.50000000          ->  1.000000000000000000000000000000000E+34 Inexact Rounded
866dqadd71334 add 1E34  -0.5000000           ->  1.000000000000000000000000000000000E+34 Inexact Rounded
867dqadd71335 add 1E34  -0.500000            ->  1.000000000000000000000000000000000E+34 Inexact Rounded
868dqadd71336 add 1E34  -0.50000             ->  1.000000000000000000000000000000000E+34 Inexact Rounded
869dqadd71337 add 1E34  -0.5000              ->  1.000000000000000000000000000000000E+34 Inexact Rounded
870dqadd71338 add 1E34  -0.500               ->  1.000000000000000000000000000000000E+34 Inexact Rounded
871dqadd71339 add 1E34  -0.50                ->  1.000000000000000000000000000000000E+34 Inexact Rounded
872
873dqadd71340 add 1E34  -5000000.000010001   ->  9999999999999999999999999995000000      Inexact Rounded
874dqadd71341 add 1E34  -5000000.000000001   ->  9999999999999999999999999995000000      Inexact Rounded
875
876dqadd71349 add 9999999999999999999999999999999999 0.4                 ->  9999999999999999999999999999999999      Inexact Rounded
877dqadd71350 add 9999999999999999999999999999999999 0.49                ->  9999999999999999999999999999999999      Inexact Rounded
878dqadd71351 add 9999999999999999999999999999999999 0.499               ->  9999999999999999999999999999999999      Inexact Rounded
879dqadd71352 add 9999999999999999999999999999999999 0.4999              ->  9999999999999999999999999999999999      Inexact Rounded
880dqadd71353 add 9999999999999999999999999999999999 0.49999             ->  9999999999999999999999999999999999      Inexact Rounded
881dqadd71354 add 9999999999999999999999999999999999 0.499999            ->  9999999999999999999999999999999999      Inexact Rounded
882dqadd71355 add 9999999999999999999999999999999999 0.4999999           ->  9999999999999999999999999999999999      Inexact Rounded
883dqadd71356 add 9999999999999999999999999999999999 0.49999999          ->  9999999999999999999999999999999999      Inexact Rounded
884dqadd71357 add 9999999999999999999999999999999999 0.499999999         ->  9999999999999999999999999999999999      Inexact Rounded
885dqadd71358 add 9999999999999999999999999999999999 0.4999999999        ->  9999999999999999999999999999999999      Inexact Rounded
886dqadd71359 add 9999999999999999999999999999999999 0.49999999999       ->  9999999999999999999999999999999999      Inexact Rounded
887dqadd71360 add 9999999999999999999999999999999999 0.499999999999      ->  9999999999999999999999999999999999      Inexact Rounded
888dqadd71361 add 9999999999999999999999999999999999 0.4999999999999     ->  9999999999999999999999999999999999      Inexact Rounded
889dqadd71362 add 9999999999999999999999999999999999 0.49999999999999    ->  9999999999999999999999999999999999      Inexact Rounded
890dqadd71363 add 9999999999999999999999999999999999 0.499999999999999   ->  9999999999999999999999999999999999      Inexact Rounded
891dqadd71364 add 9999999999999999999999999999999999 0.4999999999999999  ->  9999999999999999999999999999999999      Inexact Rounded
892dqadd71365 add 9999999999999999999999999999999999 0.5000000000000000  ->  1.000000000000000000000000000000000E+34 Inexact Rounded
893dqadd71367 add 9999999999999999999999999999999999 0.500000000000000   ->  1.000000000000000000000000000000000E+34 Inexact Rounded
894dqadd71368 add 9999999999999999999999999999999999 0.50000000000000    ->  1.000000000000000000000000000000000E+34 Inexact Rounded
895dqadd71369 add 9999999999999999999999999999999999 0.5000000000000     ->  1.000000000000000000000000000000000E+34 Inexact Rounded
896dqadd71370 add 9999999999999999999999999999999999 0.500000000000      ->  1.000000000000000000000000000000000E+34 Inexact Rounded
897dqadd71371 add 9999999999999999999999999999999999 0.50000000000       ->  1.000000000000000000000000000000000E+34 Inexact Rounded
898dqadd71372 add 9999999999999999999999999999999999 0.5000000000        ->  1.000000000000000000000000000000000E+34 Inexact Rounded
899dqadd71373 add 9999999999999999999999999999999999 0.500000000         ->  1.000000000000000000000000000000000E+34 Inexact Rounded
900dqadd71374 add 9999999999999999999999999999999999 0.50000000          ->  1.000000000000000000000000000000000E+34 Inexact Rounded
901dqadd71375 add 9999999999999999999999999999999999 0.5000000           ->  1.000000000000000000000000000000000E+34 Inexact Rounded
902dqadd71376 add 9999999999999999999999999999999999 0.500000            ->  1.000000000000000000000000000000000E+34 Inexact Rounded
903dqadd71377 add 9999999999999999999999999999999999 0.50000             ->  1.000000000000000000000000000000000E+34 Inexact Rounded
904dqadd71378 add 9999999999999999999999999999999999 0.5000              ->  1.000000000000000000000000000000000E+34 Inexact Rounded
905dqadd71379 add 9999999999999999999999999999999999 0.500               ->  1.000000000000000000000000000000000E+34 Inexact Rounded
906dqadd71380 add 9999999999999999999999999999999999 0.50                ->  1.000000000000000000000000000000000E+34 Inexact Rounded
907dqadd71381 add 9999999999999999999999999999999999 0.5                 ->  1.000000000000000000000000000000000E+34 Inexact Rounded
908dqadd71382 add 9999999999999999999999999999999999 0.5000000000000001  ->  1.000000000000000000000000000000000E+34 Inexact Rounded
909dqadd71383 add 9999999999999999999999999999999999 0.500000000000001   ->  1.000000000000000000000000000000000E+34 Inexact Rounded
910dqadd71384 add 9999999999999999999999999999999999 0.50000000000001    ->  1.000000000000000000000000000000000E+34 Inexact Rounded
911dqadd71385 add 9999999999999999999999999999999999 0.5000000000001     ->  1.000000000000000000000000000000000E+34 Inexact Rounded
912dqadd71386 add 9999999999999999999999999999999999 0.500000000001      ->  1.000000000000000000000000000000000E+34 Inexact Rounded
913dqadd71387 add 9999999999999999999999999999999999 0.50000000001       ->  1.000000000000000000000000000000000E+34 Inexact Rounded
914dqadd71388 add 9999999999999999999999999999999999 0.5000000001        ->  1.000000000000000000000000000000000E+34 Inexact Rounded
915dqadd71389 add 9999999999999999999999999999999999 0.500000001         ->  1.000000000000000000000000000000000E+34 Inexact Rounded
916dqadd71390 add 9999999999999999999999999999999999 0.50000001          ->  1.000000000000000000000000000000000E+34 Inexact Rounded
917dqadd71391 add 9999999999999999999999999999999999 0.5000001           ->  1.000000000000000000000000000000000E+34 Inexact Rounded
918dqadd71392 add 9999999999999999999999999999999999 0.500001            ->  1.000000000000000000000000000000000E+34 Inexact Rounded
919dqadd71393 add 9999999999999999999999999999999999 0.50001             ->  1.000000000000000000000000000000000E+34 Inexact Rounded
920dqadd71394 add 9999999999999999999999999999999999 0.5001              ->  1.000000000000000000000000000000000E+34 Inexact Rounded
921dqadd71395 add 9999999999999999999999999999999999 0.501               ->  1.000000000000000000000000000000000E+34 Inexact Rounded
922dqadd71396 add 9999999999999999999999999999999999 0.51                ->  1.000000000000000000000000000000000E+34 Inexact Rounded
923
924-- More GD edge cases, where difference between the unadjusted
925-- exponents is larger than the maximum precision and one side is 0
926dqadd71420 add  0 1.123456789987654321123456789012345     -> 1.123456789987654321123456789012345
927dqadd71421 add  0 1.123456789987654321123456789012345E-1  -> 0.1123456789987654321123456789012345
928dqadd71422 add  0 1.123456789987654321123456789012345E-2  -> 0.01123456789987654321123456789012345
929dqadd71423 add  0 1.123456789987654321123456789012345E-3  -> 0.001123456789987654321123456789012345
930dqadd71424 add  0 1.123456789987654321123456789012345E-4  -> 0.0001123456789987654321123456789012345
931dqadd71425 add  0 1.123456789987654321123456789012345E-5  -> 0.00001123456789987654321123456789012345
932dqadd71426 add  0 1.123456789987654321123456789012345E-6  -> 0.000001123456789987654321123456789012345
933dqadd71427 add  0 1.123456789987654321123456789012345E-7  -> 1.123456789987654321123456789012345E-7
934dqadd71428 add  0 1.123456789987654321123456789012345E-8  -> 1.123456789987654321123456789012345E-8
935dqadd71429 add  0 1.123456789987654321123456789012345E-9  -> 1.123456789987654321123456789012345E-9
936dqadd71430 add  0 1.123456789987654321123456789012345E-10 -> 1.123456789987654321123456789012345E-10
937dqadd71431 add  0 1.123456789987654321123456789012345E-11 -> 1.123456789987654321123456789012345E-11
938dqadd71432 add  0 1.123456789987654321123456789012345E-12 -> 1.123456789987654321123456789012345E-12
939dqadd71433 add  0 1.123456789987654321123456789012345E-13 -> 1.123456789987654321123456789012345E-13
940dqadd71434 add  0 1.123456789987654321123456789012345E-14 -> 1.123456789987654321123456789012345E-14
941dqadd71435 add  0 1.123456789987654321123456789012345E-15 -> 1.123456789987654321123456789012345E-15
942dqadd71436 add  0 1.123456789987654321123456789012345E-16 -> 1.123456789987654321123456789012345E-16
943dqadd71437 add  0 1.123456789987654321123456789012345E-17 -> 1.123456789987654321123456789012345E-17
944dqadd71438 add  0 1.123456789987654321123456789012345E-18 -> 1.123456789987654321123456789012345E-18
945dqadd71439 add  0 1.123456789987654321123456789012345E-19 -> 1.123456789987654321123456789012345E-19
946dqadd71440 add  0 1.123456789987654321123456789012345E-20 -> 1.123456789987654321123456789012345E-20
947dqadd71441 add  0 1.123456789987654321123456789012345E-21 -> 1.123456789987654321123456789012345E-21
948dqadd71442 add  0 1.123456789987654321123456789012345E-22 -> 1.123456789987654321123456789012345E-22
949dqadd71443 add  0 1.123456789987654321123456789012345E-23 -> 1.123456789987654321123456789012345E-23
950dqadd71444 add  0 1.123456789987654321123456789012345E-24 -> 1.123456789987654321123456789012345E-24
951dqadd71445 add  0 1.123456789987654321123456789012345E-25 -> 1.123456789987654321123456789012345E-25
952dqadd71446 add  0 1.123456789987654321123456789012345E-26 -> 1.123456789987654321123456789012345E-26
953dqadd71447 add  0 1.123456789987654321123456789012345E-27 -> 1.123456789987654321123456789012345E-27
954dqadd71448 add  0 1.123456789987654321123456789012345E-28 -> 1.123456789987654321123456789012345E-28
955dqadd71449 add  0 1.123456789987654321123456789012345E-29 -> 1.123456789987654321123456789012345E-29
956dqadd71450 add  0 1.123456789987654321123456789012345E-30 -> 1.123456789987654321123456789012345E-30
957dqadd71451 add  0 1.123456789987654321123456789012345E-31 -> 1.123456789987654321123456789012345E-31
958dqadd71452 add  0 1.123456789987654321123456789012345E-32 -> 1.123456789987654321123456789012345E-32
959dqadd71453 add  0 1.123456789987654321123456789012345E-33 -> 1.123456789987654321123456789012345E-33
960dqadd71454 add  0 1.123456789987654321123456789012345E-34 -> 1.123456789987654321123456789012345E-34
961dqadd71455 add  0 1.123456789987654321123456789012345E-35 -> 1.123456789987654321123456789012345E-35
962dqadd71456 add  0 1.123456789987654321123456789012345E-36 -> 1.123456789987654321123456789012345E-36
963
964-- same, reversed 0
965dqadd71460 add 1.123456789987654321123456789012345     0 -> 1.123456789987654321123456789012345
966dqadd71461 add 1.123456789987654321123456789012345E-1  0 -> 0.1123456789987654321123456789012345
967dqadd71462 add 1.123456789987654321123456789012345E-2  0 -> 0.01123456789987654321123456789012345
968dqadd71463 add 1.123456789987654321123456789012345E-3  0 -> 0.001123456789987654321123456789012345
969dqadd71464 add 1.123456789987654321123456789012345E-4  0 -> 0.0001123456789987654321123456789012345
970dqadd71465 add 1.123456789987654321123456789012345E-5  0 -> 0.00001123456789987654321123456789012345
971dqadd71466 add 1.123456789987654321123456789012345E-6  0 -> 0.000001123456789987654321123456789012345
972dqadd71467 add 1.123456789987654321123456789012345E-7  0 -> 1.123456789987654321123456789012345E-7
973dqadd71468 add 1.123456789987654321123456789012345E-8  0 -> 1.123456789987654321123456789012345E-8
974dqadd71469 add 1.123456789987654321123456789012345E-9  0 -> 1.123456789987654321123456789012345E-9
975dqadd71470 add 1.123456789987654321123456789012345E-10 0 -> 1.123456789987654321123456789012345E-10
976dqadd71471 add 1.123456789987654321123456789012345E-11 0 -> 1.123456789987654321123456789012345E-11
977dqadd71472 add 1.123456789987654321123456789012345E-12 0 -> 1.123456789987654321123456789012345E-12
978dqadd71473 add 1.123456789987654321123456789012345E-13 0 -> 1.123456789987654321123456789012345E-13
979dqadd71474 add 1.123456789987654321123456789012345E-14 0 -> 1.123456789987654321123456789012345E-14
980dqadd71475 add 1.123456789987654321123456789012345E-15 0 -> 1.123456789987654321123456789012345E-15
981dqadd71476 add 1.123456789987654321123456789012345E-16 0 -> 1.123456789987654321123456789012345E-16
982dqadd71477 add 1.123456789987654321123456789012345E-17 0 -> 1.123456789987654321123456789012345E-17
983dqadd71478 add 1.123456789987654321123456789012345E-18 0 -> 1.123456789987654321123456789012345E-18
984dqadd71479 add 1.123456789987654321123456789012345E-19 0 -> 1.123456789987654321123456789012345E-19
985dqadd71480 add 1.123456789987654321123456789012345E-20 0 -> 1.123456789987654321123456789012345E-20
986dqadd71481 add 1.123456789987654321123456789012345E-21 0 -> 1.123456789987654321123456789012345E-21
987dqadd71482 add 1.123456789987654321123456789012345E-22 0 -> 1.123456789987654321123456789012345E-22
988dqadd71483 add 1.123456789987654321123456789012345E-23 0 -> 1.123456789987654321123456789012345E-23
989dqadd71484 add 1.123456789987654321123456789012345E-24 0 -> 1.123456789987654321123456789012345E-24
990dqadd71485 add 1.123456789987654321123456789012345E-25 0 -> 1.123456789987654321123456789012345E-25
991dqadd71486 add 1.123456789987654321123456789012345E-26 0 -> 1.123456789987654321123456789012345E-26
992dqadd71487 add 1.123456789987654321123456789012345E-27 0 -> 1.123456789987654321123456789012345E-27
993dqadd71488 add 1.123456789987654321123456789012345E-28 0 -> 1.123456789987654321123456789012345E-28
994dqadd71489 add 1.123456789987654321123456789012345E-29 0 -> 1.123456789987654321123456789012345E-29
995dqadd71490 add 1.123456789987654321123456789012345E-30 0 -> 1.123456789987654321123456789012345E-30
996dqadd71491 add 1.123456789987654321123456789012345E-31 0 -> 1.123456789987654321123456789012345E-31
997dqadd71492 add 1.123456789987654321123456789012345E-32 0 -> 1.123456789987654321123456789012345E-32
998dqadd71493 add 1.123456789987654321123456789012345E-33 0 -> 1.123456789987654321123456789012345E-33
999dqadd71494 add 1.123456789987654321123456789012345E-34 0 -> 1.123456789987654321123456789012345E-34
1000dqadd71495 add 1.123456789987654321123456789012345E-35 0 -> 1.123456789987654321123456789012345E-35
1001dqadd71496 add 1.123456789987654321123456789012345E-36 0 -> 1.123456789987654321123456789012345E-36
1002
1003-- same, Es on the 0
1004dqadd71500 add 1.123456789987654321123456789012345  0E-0   -> 1.123456789987654321123456789012345
1005dqadd71501 add 1.123456789987654321123456789012345  0E-1   -> 1.123456789987654321123456789012345
1006dqadd71502 add 1.123456789987654321123456789012345  0E-2   -> 1.123456789987654321123456789012345
1007dqadd71503 add 1.123456789987654321123456789012345  0E-3   -> 1.123456789987654321123456789012345
1008dqadd71504 add 1.123456789987654321123456789012345  0E-4   -> 1.123456789987654321123456789012345
1009dqadd71505 add 1.123456789987654321123456789012345  0E-5   -> 1.123456789987654321123456789012345
1010dqadd71506 add 1.123456789987654321123456789012345  0E-6   -> 1.123456789987654321123456789012345
1011dqadd71507 add 1.123456789987654321123456789012345  0E-7   -> 1.123456789987654321123456789012345
1012dqadd71508 add 1.123456789987654321123456789012345  0E-8   -> 1.123456789987654321123456789012345
1013dqadd71509 add 1.123456789987654321123456789012345  0E-9   -> 1.123456789987654321123456789012345
1014dqadd71510 add 1.123456789987654321123456789012345  0E-10  -> 1.123456789987654321123456789012345
1015dqadd71511 add 1.123456789987654321123456789012345  0E-11  -> 1.123456789987654321123456789012345
1016dqadd71512 add 1.123456789987654321123456789012345  0E-12  -> 1.123456789987654321123456789012345
1017dqadd71513 add 1.123456789987654321123456789012345  0E-13  -> 1.123456789987654321123456789012345
1018dqadd71514 add 1.123456789987654321123456789012345  0E-14  -> 1.123456789987654321123456789012345
1019dqadd71515 add 1.123456789987654321123456789012345  0E-15  -> 1.123456789987654321123456789012345
1020dqadd71516 add 1.123456789987654321123456789012345  0E-16  -> 1.123456789987654321123456789012345
1021dqadd71517 add 1.123456789987654321123456789012345  0E-17  -> 1.123456789987654321123456789012345
1022dqadd71518 add 1.123456789987654321123456789012345  0E-18  -> 1.123456789987654321123456789012345
1023dqadd71519 add 1.123456789987654321123456789012345  0E-19  -> 1.123456789987654321123456789012345
1024dqadd71520 add 1.123456789987654321123456789012345  0E-20  -> 1.123456789987654321123456789012345
1025dqadd71521 add 1.123456789987654321123456789012345  0E-21  -> 1.123456789987654321123456789012345
1026dqadd71522 add 1.123456789987654321123456789012345  0E-22  -> 1.123456789987654321123456789012345
1027dqadd71523 add 1.123456789987654321123456789012345  0E-23  -> 1.123456789987654321123456789012345
1028dqadd71524 add 1.123456789987654321123456789012345  0E-24  -> 1.123456789987654321123456789012345
1029dqadd71525 add 1.123456789987654321123456789012345  0E-25  -> 1.123456789987654321123456789012345
1030dqadd71526 add 1.123456789987654321123456789012345  0E-26  -> 1.123456789987654321123456789012345
1031dqadd71527 add 1.123456789987654321123456789012345  0E-27  -> 1.123456789987654321123456789012345
1032dqadd71528 add 1.123456789987654321123456789012345  0E-28  -> 1.123456789987654321123456789012345
1033dqadd71529 add 1.123456789987654321123456789012345  0E-29  -> 1.123456789987654321123456789012345
1034dqadd71530 add 1.123456789987654321123456789012345  0E-30  -> 1.123456789987654321123456789012345
1035dqadd71531 add 1.123456789987654321123456789012345  0E-31  -> 1.123456789987654321123456789012345
1036dqadd71532 add 1.123456789987654321123456789012345  0E-32  -> 1.123456789987654321123456789012345
1037dqadd71533 add 1.123456789987654321123456789012345  0E-33  -> 1.123456789987654321123456789012345
1038-- next four flag Rounded because the 0 extends the result
1039dqadd71534 add 1.123456789987654321123456789012345  0E-34  -> 1.123456789987654321123456789012345 Rounded
1040dqadd71535 add 1.123456789987654321123456789012345  0E-35  -> 1.123456789987654321123456789012345 Rounded
1041dqadd71536 add 1.123456789987654321123456789012345  0E-36  -> 1.123456789987654321123456789012345 Rounded
1042dqadd71537 add 1.123456789987654321123456789012345  0E-37  -> 1.123456789987654321123456789012345 Rounded
1043
1044-- sum of two opposite-sign operands is exactly 0 and floor => -0
1045rounding:    half_up
1046-- exact zeros from zeros
1047dqadd71600 add  0        0E-19  ->  0E-19
1048dqadd71601 add -0        0E-19  ->  0E-19
1049dqadd71602 add  0       -0E-19  ->  0E-19
1050dqadd71603 add -0       -0E-19  -> -0E-19
1051-- exact zeros from non-zeros
1052dqadd71611 add -11      11    ->  0
1053dqadd71612 add  11     -11    ->  0
1054
1055rounding:    half_down
1056-- exact zeros from zeros
1057dqadd71620 add  0        0E-19  ->  0E-19
1058dqadd71621 add -0        0E-19  ->  0E-19
1059dqadd71622 add  0       -0E-19  ->  0E-19
1060dqadd71623 add -0       -0E-19  -> -0E-19
1061-- exact zeros from non-zeros
1062dqadd71631 add -11      11    ->  0
1063dqadd71632 add  11     -11    ->  0
1064
1065rounding:    half_even
1066-- exact zeros from zeros
1067dqadd71640 add  0        0E-19  ->  0E-19
1068dqadd71641 add -0        0E-19  ->  0E-19
1069dqadd71642 add  0       -0E-19  ->  0E-19
1070dqadd71643 add -0       -0E-19  -> -0E-19
1071-- exact zeros from non-zeros
1072dqadd71651 add -11      11    ->  0
1073dqadd71652 add  11     -11    ->  0
1074
1075rounding:    up
1076-- exact zeros from zeros
1077dqadd71660 add  0        0E-19  ->  0E-19
1078dqadd71661 add -0        0E-19  ->  0E-19
1079dqadd71662 add  0       -0E-19  ->  0E-19
1080dqadd71663 add -0       -0E-19  -> -0E-19
1081-- exact zeros from non-zeros
1082dqadd71671 add -11      11    ->  0
1083dqadd71672 add  11     -11    ->  0
1084
1085rounding:    down
1086-- exact zeros from zeros
1087dqadd71680 add  0        0E-19  ->  0E-19
1088dqadd71681 add -0        0E-19  ->  0E-19
1089dqadd71682 add  0       -0E-19  ->  0E-19
1090dqadd71683 add -0       -0E-19  -> -0E-19
1091-- exact zeros from non-zeros
1092dqadd71691 add -11      11    ->  0
1093dqadd71692 add  11     -11    ->  0
1094
1095rounding:    ceiling
1096-- exact zeros from zeros
1097dqadd71700 add  0        0E-19  ->  0E-19
1098dqadd71701 add -0        0E-19  ->  0E-19
1099dqadd71702 add  0       -0E-19  ->  0E-19
1100dqadd71703 add -0       -0E-19  -> -0E-19
1101-- exact zeros from non-zeros
1102dqadd71711 add -11      11    ->  0
1103dqadd71712 add  11     -11    ->  0
1104
1105-- and the extra-special ugly case; unusual minuses marked by -- *
1106rounding:    floor
1107-- exact zeros from zeros
1108dqadd71720 add  0        0E-19  ->  0E-19
1109dqadd71721 add -0        0E-19  -> -0E-19           -- *
1110dqadd71722 add  0       -0E-19  -> -0E-19           -- *
1111dqadd71723 add -0       -0E-19  -> -0E-19
1112-- exact zeros from non-zeros
1113dqadd71731 add -11      11    ->  -0                -- *
1114dqadd71732 add  11     -11    ->  -0                -- *
1115
1116-- Examples from SQL proposal (Krishna Kulkarni)
1117dqadd71741 add 130E-2    120E-2    -> 2.50
1118dqadd71742 add 130E-2    12E-1     -> 2.50
1119dqadd71743 add 130E-2    1E0       -> 2.30
1120dqadd71744 add 1E2       1E4       -> 1.01E+4
1121dqadd71745 add 130E-2   -120E-2 -> 0.10
1122dqadd71746 add 130E-2   -12E-1  -> 0.10
1123dqadd71747 add 130E-2   -1E0    -> 0.30
1124dqadd71748 add 1E2      -1E4    -> -9.9E+3
1125
1126-- Gappy coefficients; check residue handling even with full coefficient gap
1127rounding: half_even
1128
1129dqadd75001 add 1239876543211234567894567890123456 1      -> 1239876543211234567894567890123457
1130dqadd75002 add 1239876543211234567894567890123456 0.6    -> 1239876543211234567894567890123457  Inexact Rounded
1131dqadd75003 add 1239876543211234567894567890123456 0.06   -> 1239876543211234567894567890123456  Inexact Rounded
1132dqadd75004 add 1239876543211234567894567890123456 6E-3   -> 1239876543211234567894567890123456  Inexact Rounded
1133dqadd75005 add 1239876543211234567894567890123456 6E-4   -> 1239876543211234567894567890123456  Inexact Rounded
1134dqadd75006 add 1239876543211234567894567890123456 6E-5   -> 1239876543211234567894567890123456  Inexact Rounded
1135dqadd75007 add 1239876543211234567894567890123456 6E-6   -> 1239876543211234567894567890123456  Inexact Rounded
1136dqadd75008 add 1239876543211234567894567890123456 6E-7   -> 1239876543211234567894567890123456  Inexact Rounded
1137dqadd75009 add 1239876543211234567894567890123456 6E-8   -> 1239876543211234567894567890123456  Inexact Rounded
1138dqadd75010 add 1239876543211234567894567890123456 6E-9   -> 1239876543211234567894567890123456  Inexact Rounded
1139dqadd75011 add 1239876543211234567894567890123456 6E-10  -> 1239876543211234567894567890123456  Inexact Rounded
1140dqadd75012 add 1239876543211234567894567890123456 6E-11  -> 1239876543211234567894567890123456  Inexact Rounded
1141dqadd75013 add 1239876543211234567894567890123456 6E-12  -> 1239876543211234567894567890123456  Inexact Rounded
1142dqadd75014 add 1239876543211234567894567890123456 6E-13  -> 1239876543211234567894567890123456  Inexact Rounded
1143dqadd75015 add 1239876543211234567894567890123456 6E-14  -> 1239876543211234567894567890123456  Inexact Rounded
1144dqadd75016 add 1239876543211234567894567890123456 6E-15  -> 1239876543211234567894567890123456  Inexact Rounded
1145dqadd75017 add 1239876543211234567894567890123456 6E-16  -> 1239876543211234567894567890123456  Inexact Rounded
1146dqadd75018 add 1239876543211234567894567890123456 6E-17  -> 1239876543211234567894567890123456  Inexact Rounded
1147dqadd75019 add 1239876543211234567894567890123456 6E-18  -> 1239876543211234567894567890123456  Inexact Rounded
1148dqadd75020 add 1239876543211234567894567890123456 6E-19  -> 1239876543211234567894567890123456  Inexact Rounded
1149dqadd75021 add 1239876543211234567894567890123456 6E-20  -> 1239876543211234567894567890123456  Inexact Rounded
1150
1151-- widening second argument at gap
1152dqadd75030 add 12398765432112345678945678 1                       -> 12398765432112345678945679
1153dqadd75031 add 12398765432112345678945678 0.1                     -> 12398765432112345678945678.1
1154dqadd75032 add 12398765432112345678945678 0.12                    -> 12398765432112345678945678.12
1155dqadd75033 add 12398765432112345678945678 0.123                   -> 12398765432112345678945678.123
1156dqadd75034 add 12398765432112345678945678 0.1234                  -> 12398765432112345678945678.1234
1157dqadd75035 add 12398765432112345678945678 0.12345                 -> 12398765432112345678945678.12345
1158dqadd75036 add 12398765432112345678945678 0.123456                -> 12398765432112345678945678.123456
1159dqadd75037 add 12398765432112345678945678 0.1234567               -> 12398765432112345678945678.1234567
1160dqadd75038 add 12398765432112345678945678 0.12345678              -> 12398765432112345678945678.12345678
1161dqadd75039 add 12398765432112345678945678 0.123456789             -> 12398765432112345678945678.12345679 Inexact Rounded
1162dqadd75040 add 12398765432112345678945678 0.123456785             -> 12398765432112345678945678.12345678 Inexact Rounded
1163dqadd75041 add 12398765432112345678945678 0.1234567850            -> 12398765432112345678945678.12345678 Inexact Rounded
1164dqadd75042 add 12398765432112345678945678 0.1234567851            -> 12398765432112345678945678.12345679 Inexact Rounded
1165dqadd75043 add 12398765432112345678945678 0.12345678501           -> 12398765432112345678945678.12345679 Inexact Rounded
1166dqadd75044 add 12398765432112345678945678 0.123456785001          -> 12398765432112345678945678.12345679 Inexact Rounded
1167dqadd75045 add 12398765432112345678945678 0.1234567850001         -> 12398765432112345678945678.12345679 Inexact Rounded
1168dqadd75046 add 12398765432112345678945678 0.12345678500001        -> 12398765432112345678945678.12345679 Inexact Rounded
1169dqadd75047 add 12398765432112345678945678 0.123456785000001       -> 12398765432112345678945678.12345679 Inexact Rounded
1170dqadd75048 add 12398765432112345678945678 0.1234567850000001      -> 12398765432112345678945678.12345679 Inexact Rounded
1171dqadd75049 add 12398765432112345678945678 0.1234567850000000      -> 12398765432112345678945678.12345678 Inexact Rounded
1172--                               90123456
1173rounding: half_even
1174dqadd75050 add 12398765432112345678945678 0.0234567750000000      -> 12398765432112345678945678.02345678 Inexact Rounded
1175dqadd75051 add 12398765432112345678945678 0.0034567750000000      -> 12398765432112345678945678.00345678 Inexact Rounded
1176dqadd75052 add 12398765432112345678945678 0.0004567750000000      -> 12398765432112345678945678.00045678 Inexact Rounded
1177dqadd75053 add 12398765432112345678945678 0.0000567750000000      -> 12398765432112345678945678.00005678 Inexact Rounded
1178dqadd75054 add 12398765432112345678945678 0.0000067750000000      -> 12398765432112345678945678.00000678 Inexact Rounded
1179dqadd75055 add 12398765432112345678945678 0.0000007750000000      -> 12398765432112345678945678.00000078 Inexact Rounded
1180dqadd75056 add 12398765432112345678945678 0.0000000750000000      -> 12398765432112345678945678.00000008 Inexact Rounded
1181dqadd75057 add 12398765432112345678945678 0.0000000050000000      -> 12398765432112345678945678.00000000 Inexact Rounded
1182dqadd75060 add 12398765432112345678945678 0.0234567750000001      -> 12398765432112345678945678.02345678 Inexact Rounded
1183dqadd75061 add 12398765432112345678945678 0.0034567750000001      -> 12398765432112345678945678.00345678 Inexact Rounded
1184dqadd75062 add 12398765432112345678945678 0.0004567750000001      -> 12398765432112345678945678.00045678 Inexact Rounded
1185dqadd75063 add 12398765432112345678945678 0.0000567750000001      -> 12398765432112345678945678.00005678 Inexact Rounded
1186dqadd75064 add 12398765432112345678945678 0.0000067750000001      -> 12398765432112345678945678.00000678 Inexact Rounded
1187dqadd75065 add 12398765432112345678945678 0.0000007750000001      -> 12398765432112345678945678.00000078 Inexact Rounded
1188dqadd75066 add 12398765432112345678945678 0.0000000750000001      -> 12398765432112345678945678.00000008 Inexact Rounded
1189dqadd75067 add 12398765432112345678945678 0.0000000050000001      -> 12398765432112345678945678.00000001 Inexact Rounded
1190-- far-out residues (full coefficient gap is 16+15 digits)
1191rounding: up
1192dqadd75070 add 12398765432112345678945678 1E-8                    -> 12398765432112345678945678.00000001
1193dqadd75071 add 12398765432112345678945678 1E-9                    -> 12398765432112345678945678.00000001 Inexact Rounded
1194dqadd75072 add 12398765432112345678945678 1E-10                   -> 12398765432112345678945678.00000001 Inexact Rounded
1195dqadd75073 add 12398765432112345678945678 1E-11                   -> 12398765432112345678945678.00000001 Inexact Rounded
1196dqadd75074 add 12398765432112345678945678 1E-12                   -> 12398765432112345678945678.00000001 Inexact Rounded
1197dqadd75075 add 12398765432112345678945678 1E-13                   -> 12398765432112345678945678.00000001 Inexact Rounded
1198dqadd75076 add 12398765432112345678945678 1E-14                   -> 12398765432112345678945678.00000001 Inexact Rounded
1199dqadd75077 add 12398765432112345678945678 1E-15                   -> 12398765432112345678945678.00000001 Inexact Rounded
1200dqadd75078 add 12398765432112345678945678 1E-16                   -> 12398765432112345678945678.00000001 Inexact Rounded
1201dqadd75079 add 12398765432112345678945678 1E-17                   -> 12398765432112345678945678.00000001 Inexact Rounded
1202dqadd75080 add 12398765432112345678945678 1E-18                   -> 12398765432112345678945678.00000001 Inexact Rounded
1203dqadd75081 add 12398765432112345678945678 1E-19                   -> 12398765432112345678945678.00000001 Inexact Rounded
1204dqadd75082 add 12398765432112345678945678 1E-20                   -> 12398765432112345678945678.00000001 Inexact Rounded
1205dqadd75083 add 12398765432112345678945678 1E-25                   -> 12398765432112345678945678.00000001 Inexact Rounded
1206dqadd75084 add 12398765432112345678945678 1E-30                   -> 12398765432112345678945678.00000001 Inexact Rounded
1207dqadd75085 add 12398765432112345678945678 1E-31                   -> 12398765432112345678945678.00000001 Inexact Rounded
1208dqadd75086 add 12398765432112345678945678 1E-32                   -> 12398765432112345678945678.00000001 Inexact Rounded
1209dqadd75087 add 12398765432112345678945678 1E-33                   -> 12398765432112345678945678.00000001 Inexact Rounded
1210dqadd75088 add 12398765432112345678945678 1E-34                   -> 12398765432112345678945678.00000001 Inexact Rounded
1211dqadd75089 add 12398765432112345678945678 1E-35                   -> 12398765432112345678945678.00000001 Inexact Rounded
1212
1213-- Null tests
1214dqadd9990 add 10  # -> NaN Invalid_operation
1215dqadd9991 add  # 10 -> NaN Invalid_operation
1216