17db96d56Sopenharmony_ci------------------------------------------------------------------------
27db96d56Sopenharmony_ci-- max.decTest -- decimal maximum                                     --
37db96d56Sopenharmony_ci-- Copyright (c) IBM Corporation, 1981, 2008.  All rights reserved.   --
47db96d56Sopenharmony_ci------------------------------------------------------------------------
57db96d56Sopenharmony_ci-- Please see the document "General Decimal Arithmetic Testcases"     --
67db96d56Sopenharmony_ci-- at http://www2.hursley.ibm.com/decimal for the description of      --
77db96d56Sopenharmony_ci-- these testcases.                                                   --
87db96d56Sopenharmony_ci--                                                                    --
97db96d56Sopenharmony_ci-- These testcases are experimental ('beta' versions), and they       --
107db96d56Sopenharmony_ci-- may contain errors.  They are offered on an as-is basis.  In       --
117db96d56Sopenharmony_ci-- particular, achieving the same results as the tests here is not    --
127db96d56Sopenharmony_ci-- a guarantee that an implementation complies with any Standard      --
137db96d56Sopenharmony_ci-- or specification.  The tests are not exhaustive.                   --
147db96d56Sopenharmony_ci--                                                                    --
157db96d56Sopenharmony_ci-- Please send comments, suggestions, and corrections to the author:  --
167db96d56Sopenharmony_ci--   Mike Cowlishaw, IBM Fellow                                       --
177db96d56Sopenharmony_ci--   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
187db96d56Sopenharmony_ci--   mfc@uk.ibm.com                                                   --
197db96d56Sopenharmony_ci------------------------------------------------------------------------
207db96d56Sopenharmony_civersion: 2.59
217db96d56Sopenharmony_ci
227db96d56Sopenharmony_ci-- we assume that base comparison is tested in compare.decTest, so
237db96d56Sopenharmony_ci-- these mainly cover special cases and rounding
247db96d56Sopenharmony_ci
257db96d56Sopenharmony_ciextended:    1
267db96d56Sopenharmony_ciprecision:   9
277db96d56Sopenharmony_cirounding:    half_up
287db96d56Sopenharmony_cimaxExponent: 384
297db96d56Sopenharmony_ciminexponent: -383
307db96d56Sopenharmony_ci
317db96d56Sopenharmony_ci-- sanity checks
327db96d56Sopenharmony_cimaxx001 max  -2  -2  -> -2
337db96d56Sopenharmony_cimaxx002 max  -2  -1  -> -1
347db96d56Sopenharmony_cimaxx003 max  -2   0  ->  0
357db96d56Sopenharmony_cimaxx004 max  -2   1  ->  1
367db96d56Sopenharmony_cimaxx005 max  -2   2  ->  2
377db96d56Sopenharmony_cimaxx006 max  -1  -2  -> -1
387db96d56Sopenharmony_cimaxx007 max  -1  -1  -> -1
397db96d56Sopenharmony_cimaxx008 max  -1   0  ->  0
407db96d56Sopenharmony_cimaxx009 max  -1   1  ->  1
417db96d56Sopenharmony_cimaxx010 max  -1   2  ->  2
427db96d56Sopenharmony_cimaxx011 max   0  -2  ->  0
437db96d56Sopenharmony_cimaxx012 max   0  -1  ->  0
447db96d56Sopenharmony_cimaxx013 max   0   0  ->  0
457db96d56Sopenharmony_cimaxx014 max   0   1  ->  1
467db96d56Sopenharmony_cimaxx015 max   0   2  ->  2
477db96d56Sopenharmony_cimaxx016 max   1  -2  ->  1
487db96d56Sopenharmony_cimaxx017 max   1  -1  ->  1
497db96d56Sopenharmony_cimaxx018 max   1   0  ->  1
507db96d56Sopenharmony_cimaxx019 max   1   1  ->  1
517db96d56Sopenharmony_cimaxx020 max   1   2  ->  2
527db96d56Sopenharmony_cimaxx021 max   2  -2  ->  2
537db96d56Sopenharmony_cimaxx022 max   2  -1  ->  2
547db96d56Sopenharmony_cimaxx023 max   2   0  ->  2
557db96d56Sopenharmony_cimaxx025 max   2   1  ->  2
567db96d56Sopenharmony_cimaxx026 max   2   2  ->  2
577db96d56Sopenharmony_ci
587db96d56Sopenharmony_ci-- extended zeros
597db96d56Sopenharmony_cimaxx030 max   0     0   ->  0
607db96d56Sopenharmony_cimaxx031 max   0    -0   ->  0
617db96d56Sopenharmony_cimaxx032 max   0    -0.0 ->  0
627db96d56Sopenharmony_cimaxx033 max   0     0.0 ->  0
637db96d56Sopenharmony_cimaxx034 max  -0     0   ->  0    -- note: -0 = 0, but 0 chosen
647db96d56Sopenharmony_cimaxx035 max  -0    -0   -> -0
657db96d56Sopenharmony_cimaxx036 max  -0    -0.0 -> -0.0
667db96d56Sopenharmony_cimaxx037 max  -0     0.0 ->  0.0
677db96d56Sopenharmony_cimaxx038 max   0.0   0   ->  0
687db96d56Sopenharmony_cimaxx039 max   0.0  -0   ->  0.0
697db96d56Sopenharmony_cimaxx040 max   0.0  -0.0 ->  0.0
707db96d56Sopenharmony_cimaxx041 max   0.0   0.0 ->  0.0
717db96d56Sopenharmony_cimaxx042 max  -0.0   0   ->  0
727db96d56Sopenharmony_cimaxx043 max  -0.0  -0   -> -0.0
737db96d56Sopenharmony_cimaxx044 max  -0.0  -0.0 -> -0.0
747db96d56Sopenharmony_cimaxx045 max  -0.0   0.0 ->  0.0
757db96d56Sopenharmony_ci
767db96d56Sopenharmony_cimaxx050 max  -0E1   0E1 ->  0E+1
777db96d56Sopenharmony_cimaxx051 max  -0E2   0E2 ->  0E+2
787db96d56Sopenharmony_cimaxx052 max  -0E2   0E1 ->  0E+1
797db96d56Sopenharmony_cimaxx053 max  -0E1   0E2 ->  0E+2
807db96d56Sopenharmony_cimaxx054 max   0E1  -0E1 ->  0E+1
817db96d56Sopenharmony_cimaxx055 max   0E2  -0E2 ->  0E+2
827db96d56Sopenharmony_cimaxx056 max   0E2  -0E1 ->  0E+2
837db96d56Sopenharmony_cimaxx057 max   0E1  -0E2 ->  0E+1
847db96d56Sopenharmony_ci
857db96d56Sopenharmony_cimaxx058 max   0E1   0E1 ->  0E+1
867db96d56Sopenharmony_cimaxx059 max   0E2   0E2 ->  0E+2
877db96d56Sopenharmony_cimaxx060 max   0E2   0E1 ->  0E+2
887db96d56Sopenharmony_cimaxx061 max   0E1   0E2 ->  0E+2
897db96d56Sopenharmony_cimaxx062 max  -0E1  -0E1 -> -0E+1
907db96d56Sopenharmony_cimaxx063 max  -0E2  -0E2 -> -0E+2
917db96d56Sopenharmony_cimaxx064 max  -0E2  -0E1 -> -0E+1
927db96d56Sopenharmony_cimaxx065 max  -0E1  -0E2 -> -0E+1
937db96d56Sopenharmony_ci
947db96d56Sopenharmony_ci-- Specials
957db96d56Sopenharmony_ciprecision: 9
967db96d56Sopenharmony_cimaxx090 max  Inf  -Inf   ->  Infinity
977db96d56Sopenharmony_cimaxx091 max  Inf  -1000  ->  Infinity
987db96d56Sopenharmony_cimaxx092 max  Inf  -1     ->  Infinity
997db96d56Sopenharmony_cimaxx093 max  Inf  -0     ->  Infinity
1007db96d56Sopenharmony_cimaxx094 max  Inf   0     ->  Infinity
1017db96d56Sopenharmony_cimaxx095 max  Inf   1     ->  Infinity
1027db96d56Sopenharmony_cimaxx096 max  Inf   1000  ->  Infinity
1037db96d56Sopenharmony_cimaxx097 max  Inf   Inf   ->  Infinity
1047db96d56Sopenharmony_cimaxx098 max -1000  Inf   ->  Infinity
1057db96d56Sopenharmony_cimaxx099 max -Inf   Inf   ->  Infinity
1067db96d56Sopenharmony_cimaxx100 max -1     Inf   ->  Infinity
1077db96d56Sopenharmony_cimaxx101 max -0     Inf   ->  Infinity
1087db96d56Sopenharmony_cimaxx102 max  0     Inf   ->  Infinity
1097db96d56Sopenharmony_cimaxx103 max  1     Inf   ->  Infinity
1107db96d56Sopenharmony_cimaxx104 max  1000  Inf   ->  Infinity
1117db96d56Sopenharmony_cimaxx105 max  Inf   Inf   ->  Infinity
1127db96d56Sopenharmony_ci
1137db96d56Sopenharmony_cimaxx120 max -Inf  -Inf   -> -Infinity
1147db96d56Sopenharmony_cimaxx121 max -Inf  -1000  -> -1000
1157db96d56Sopenharmony_cimaxx122 max -Inf  -1     -> -1
1167db96d56Sopenharmony_cimaxx123 max -Inf  -0     -> -0
1177db96d56Sopenharmony_cimaxx124 max -Inf   0     ->  0
1187db96d56Sopenharmony_cimaxx125 max -Inf   1     ->  1
1197db96d56Sopenharmony_cimaxx126 max -Inf   1000  ->  1000
1207db96d56Sopenharmony_cimaxx127 max -Inf   Inf   ->  Infinity
1217db96d56Sopenharmony_cimaxx128 max -Inf  -Inf   ->  -Infinity
1227db96d56Sopenharmony_cimaxx129 max -1000 -Inf   ->  -1000
1237db96d56Sopenharmony_cimaxx130 max -1    -Inf   ->  -1
1247db96d56Sopenharmony_cimaxx131 max -0    -Inf   ->  -0
1257db96d56Sopenharmony_cimaxx132 max  0    -Inf   ->  0
1267db96d56Sopenharmony_cimaxx133 max  1    -Inf   ->  1
1277db96d56Sopenharmony_cimaxx134 max  1000 -Inf   ->  1000
1287db96d56Sopenharmony_cimaxx135 max  Inf  -Inf   ->  Infinity
1297db96d56Sopenharmony_ci
1307db96d56Sopenharmony_ci-- 2004.08.02 754r chooses number over NaN in mixed cases
1317db96d56Sopenharmony_cimaxx141 max  NaN -Inf    -> -Infinity
1327db96d56Sopenharmony_cimaxx142 max  NaN -1000   -> -1000
1337db96d56Sopenharmony_cimaxx143 max  NaN -1      -> -1
1347db96d56Sopenharmony_cimaxx144 max  NaN -0      -> -0
1357db96d56Sopenharmony_cimaxx145 max  NaN  0      ->  0
1367db96d56Sopenharmony_cimaxx146 max  NaN  1      ->  1
1377db96d56Sopenharmony_cimaxx147 max  NaN  1000   ->  1000
1387db96d56Sopenharmony_cimaxx148 max  NaN  Inf    ->  Infinity
1397db96d56Sopenharmony_cimaxx149 max  NaN  NaN    ->  NaN
1407db96d56Sopenharmony_cimaxx150 max -Inf  NaN    -> -Infinity
1417db96d56Sopenharmony_cimaxx151 max -1000 NaN    -> -1000
1427db96d56Sopenharmony_cimaxx152 max -1    NaN    -> -1
1437db96d56Sopenharmony_cimaxx153 max -0    NaN    -> -0
1447db96d56Sopenharmony_cimaxx154 max  0    NaN    ->  0
1457db96d56Sopenharmony_cimaxx155 max  1    NaN    ->  1
1467db96d56Sopenharmony_cimaxx156 max  1000 NaN    ->  1000
1477db96d56Sopenharmony_cimaxx157 max  Inf  NaN    ->  Infinity
1487db96d56Sopenharmony_ci
1497db96d56Sopenharmony_cimaxx161 max  sNaN -Inf   ->  NaN  Invalid_operation
1507db96d56Sopenharmony_cimaxx162 max  sNaN -1000  ->  NaN  Invalid_operation
1517db96d56Sopenharmony_cimaxx163 max  sNaN -1     ->  NaN  Invalid_operation
1527db96d56Sopenharmony_cimaxx164 max  sNaN -0     ->  NaN  Invalid_operation
1537db96d56Sopenharmony_cimaxx165 max  sNaN  0     ->  NaN  Invalid_operation
1547db96d56Sopenharmony_cimaxx166 max  sNaN  1     ->  NaN  Invalid_operation
1557db96d56Sopenharmony_cimaxx167 max  sNaN  1000  ->  NaN  Invalid_operation
1567db96d56Sopenharmony_cimaxx168 max  sNaN  NaN   ->  NaN  Invalid_operation
1577db96d56Sopenharmony_cimaxx169 max  sNaN sNaN   ->  NaN  Invalid_operation
1587db96d56Sopenharmony_cimaxx170 max  NaN  sNaN   ->  NaN  Invalid_operation
1597db96d56Sopenharmony_cimaxx171 max -Inf  sNaN   ->  NaN  Invalid_operation
1607db96d56Sopenharmony_cimaxx172 max -1000 sNaN   ->  NaN  Invalid_operation
1617db96d56Sopenharmony_cimaxx173 max -1    sNaN   ->  NaN  Invalid_operation
1627db96d56Sopenharmony_cimaxx174 max -0    sNaN   ->  NaN  Invalid_operation
1637db96d56Sopenharmony_cimaxx175 max  0    sNaN   ->  NaN  Invalid_operation
1647db96d56Sopenharmony_cimaxx176 max  1    sNaN   ->  NaN  Invalid_operation
1657db96d56Sopenharmony_cimaxx177 max  1000 sNaN   ->  NaN  Invalid_operation
1667db96d56Sopenharmony_cimaxx178 max  Inf  sNaN   ->  NaN  Invalid_operation
1677db96d56Sopenharmony_cimaxx179 max  NaN  sNaN   ->  NaN  Invalid_operation
1687db96d56Sopenharmony_ci
1697db96d56Sopenharmony_ci-- propagating NaNs
1707db96d56Sopenharmony_cimaxx181 max  NaN9  -Inf   -> -Infinity
1717db96d56Sopenharmony_cimaxx182 max  NaN8     9   ->  9
1727db96d56Sopenharmony_cimaxx183 max -NaN7   Inf   ->  Infinity
1737db96d56Sopenharmony_ci
1747db96d56Sopenharmony_cimaxx184 max -NaN1   NaN11 -> -NaN1
1757db96d56Sopenharmony_cimaxx185 max  NaN2   NaN12 ->  NaN2
1767db96d56Sopenharmony_cimaxx186 max -NaN13 -NaN7  -> -NaN13
1777db96d56Sopenharmony_cimaxx187 max  NaN14 -NaN5  ->  NaN14
1787db96d56Sopenharmony_ci
1797db96d56Sopenharmony_cimaxx188 max -Inf    NaN4  -> -Infinity
1807db96d56Sopenharmony_cimaxx189 max -9     -NaN3  -> -9
1817db96d56Sopenharmony_cimaxx190 max  Inf    NaN2  ->  Infinity
1827db96d56Sopenharmony_ci
1837db96d56Sopenharmony_cimaxx191 max  sNaN99 -Inf    ->  NaN99 Invalid_operation
1847db96d56Sopenharmony_cimaxx192 max  sNaN98 -1      ->  NaN98 Invalid_operation
1857db96d56Sopenharmony_cimaxx193 max -sNaN97  NaN    -> -NaN97 Invalid_operation
1867db96d56Sopenharmony_cimaxx194 max  sNaN96 sNaN94  ->  NaN96 Invalid_operation
1877db96d56Sopenharmony_cimaxx195 max  NaN95  sNaN93  ->  NaN93 Invalid_operation
1887db96d56Sopenharmony_cimaxx196 max -Inf    sNaN92  ->  NaN92 Invalid_operation
1897db96d56Sopenharmony_cimaxx197 max  0      sNaN91  ->  NaN91 Invalid_operation
1907db96d56Sopenharmony_cimaxx198 max  Inf   -sNaN90  -> -NaN90 Invalid_operation
1917db96d56Sopenharmony_cimaxx199 max  NaN    sNaN89  ->  NaN89 Invalid_operation
1927db96d56Sopenharmony_ci
1937db96d56Sopenharmony_ci-- rounding checks
1947db96d56Sopenharmony_cimaxexponent: 999
1957db96d56Sopenharmony_ciminexponent: -999
1967db96d56Sopenharmony_ciprecision: 9
1977db96d56Sopenharmony_cimaxx201 max 12345678000 1  -> 1.23456780E+10 Rounded
1987db96d56Sopenharmony_cimaxx202 max 1 12345678000  -> 1.23456780E+10 Rounded
1997db96d56Sopenharmony_cimaxx203 max 1234567800  1  -> 1.23456780E+9 Rounded
2007db96d56Sopenharmony_cimaxx204 max 1 1234567800   -> 1.23456780E+9 Rounded
2017db96d56Sopenharmony_cimaxx205 max 1234567890  1  -> 1.23456789E+9 Rounded
2027db96d56Sopenharmony_cimaxx206 max 1 1234567890   -> 1.23456789E+9 Rounded
2037db96d56Sopenharmony_cimaxx207 max 1234567891  1  -> 1.23456789E+9 Inexact Rounded
2047db96d56Sopenharmony_cimaxx208 max 1 1234567891   -> 1.23456789E+9 Inexact Rounded
2057db96d56Sopenharmony_cimaxx209 max 12345678901 1  -> 1.23456789E+10 Inexact Rounded
2067db96d56Sopenharmony_cimaxx210 max 1 12345678901  -> 1.23456789E+10 Inexact Rounded
2077db96d56Sopenharmony_cimaxx211 max 1234567896  1  -> 1.23456790E+9 Inexact Rounded
2087db96d56Sopenharmony_cimaxx212 max 1 1234567896   -> 1.23456790E+9 Inexact Rounded
2097db96d56Sopenharmony_cimaxx213 max -1234567891  1 -> 1
2107db96d56Sopenharmony_cimaxx214 max 1 -1234567891  -> 1
2117db96d56Sopenharmony_cimaxx215 max -12345678901 1 -> 1
2127db96d56Sopenharmony_cimaxx216 max 1 -12345678901 -> 1
2137db96d56Sopenharmony_cimaxx217 max -1234567896  1 -> 1
2147db96d56Sopenharmony_cimaxx218 max 1 -1234567896  -> 1
2157db96d56Sopenharmony_ci
2167db96d56Sopenharmony_ciprecision: 15
2177db96d56Sopenharmony_cimaxx221 max 12345678000 1  -> 12345678000
2187db96d56Sopenharmony_cimaxx222 max 1 12345678000  -> 12345678000
2197db96d56Sopenharmony_cimaxx223 max 1234567800  1  -> 1234567800
2207db96d56Sopenharmony_cimaxx224 max 1 1234567800   -> 1234567800
2217db96d56Sopenharmony_cimaxx225 max 1234567890  1  -> 1234567890
2227db96d56Sopenharmony_cimaxx226 max 1 1234567890   -> 1234567890
2237db96d56Sopenharmony_cimaxx227 max 1234567891  1  -> 1234567891
2247db96d56Sopenharmony_cimaxx228 max 1 1234567891   -> 1234567891
2257db96d56Sopenharmony_cimaxx229 max 12345678901 1  -> 12345678901
2267db96d56Sopenharmony_cimaxx230 max 1 12345678901  -> 12345678901
2277db96d56Sopenharmony_cimaxx231 max 1234567896  1  -> 1234567896
2287db96d56Sopenharmony_cimaxx232 max 1 1234567896   -> 1234567896
2297db96d56Sopenharmony_cimaxx233 max -1234567891  1 -> 1
2307db96d56Sopenharmony_cimaxx234 max 1 -1234567891  -> 1
2317db96d56Sopenharmony_cimaxx235 max -12345678901 1 -> 1
2327db96d56Sopenharmony_cimaxx236 max 1 -12345678901 -> 1
2337db96d56Sopenharmony_cimaxx237 max -1234567896  1 -> 1
2347db96d56Sopenharmony_cimaxx238 max 1 -1234567896  -> 1
2357db96d56Sopenharmony_ci
2367db96d56Sopenharmony_ci-- from examples
2377db96d56Sopenharmony_cimaxx280 max '3'   '2'  ->  '3'
2387db96d56Sopenharmony_cimaxx281 max '-10' '3'  ->  '3'
2397db96d56Sopenharmony_cimaxx282 max '1.0' '1'  ->  '1'
2407db96d56Sopenharmony_cimaxx283 max '1' '1.0'  ->  '1'
2417db96d56Sopenharmony_cimaxx284 max '7' 'NaN'  ->  '7'
2427db96d56Sopenharmony_ci
2437db96d56Sopenharmony_ci-- overflow and underflow tests ...
2447db96d56Sopenharmony_cimaxExponent: 999999999
2457db96d56Sopenharmony_ciminexponent: -999999999
2467db96d56Sopenharmony_cimaxx330 max +1.23456789012345E-0 9E+999999999 ->  9E+999999999
2477db96d56Sopenharmony_cimaxx331 max 9E+999999999 +1.23456789012345E-0 ->  9E+999999999
2487db96d56Sopenharmony_cimaxx332 max +0.100 9E-999999999               ->  0.100
2497db96d56Sopenharmony_cimaxx333 max 9E-999999999 +0.100               ->  0.100
2507db96d56Sopenharmony_cimaxx335 max -1.23456789012345E-0 9E+999999999 ->  9E+999999999
2517db96d56Sopenharmony_cimaxx336 max 9E+999999999 -1.23456789012345E-0 ->  9E+999999999
2527db96d56Sopenharmony_cimaxx337 max -0.100 9E-999999999               ->  9E-999999999
2537db96d56Sopenharmony_cimaxx338 max 9E-999999999 -0.100               ->  9E-999999999
2547db96d56Sopenharmony_ci
2557db96d56Sopenharmony_cimaxx339 max 1e-599999999 1e-400000001   ->  1E-400000001
2567db96d56Sopenharmony_cimaxx340 max 1e-599999999 1e-400000000   ->  1E-400000000
2577db96d56Sopenharmony_cimaxx341 max 1e-600000000 1e-400000000   ->  1E-400000000
2587db96d56Sopenharmony_cimaxx342 max 9e-999999998 0.01           ->  0.01
2597db96d56Sopenharmony_cimaxx343 max 9e-999999998 0.1            ->  0.1
2607db96d56Sopenharmony_cimaxx344 max 0.01 9e-999999998           ->  0.01
2617db96d56Sopenharmony_cimaxx345 max 1e599999999 1e400000001     ->  1E+599999999
2627db96d56Sopenharmony_cimaxx346 max 1e599999999 1e400000000     ->  1E+599999999
2637db96d56Sopenharmony_cimaxx347 max 1e600000000 1e400000000     ->  1E+600000000
2647db96d56Sopenharmony_cimaxx348 max 9e999999998 100             ->  9E+999999998
2657db96d56Sopenharmony_cimaxx349 max 9e999999998 10              ->  9E+999999998
2667db96d56Sopenharmony_cimaxx350 max 100  9e999999998            ->  9E+999999998
2677db96d56Sopenharmony_ci-- signs
2687db96d56Sopenharmony_cimaxx351 max  1e+777777777  1e+411111111 ->  1E+777777777
2697db96d56Sopenharmony_cimaxx352 max  1e+777777777 -1e+411111111 ->  1E+777777777
2707db96d56Sopenharmony_cimaxx353 max -1e+777777777  1e+411111111 ->  1E+411111111
2717db96d56Sopenharmony_cimaxx354 max -1e+777777777 -1e+411111111 -> -1E+411111111
2727db96d56Sopenharmony_cimaxx355 max  1e-777777777  1e-411111111 ->  1E-411111111
2737db96d56Sopenharmony_cimaxx356 max  1e-777777777 -1e-411111111 ->  1E-777777777
2747db96d56Sopenharmony_cimaxx357 max -1e-777777777  1e-411111111 ->  1E-411111111
2757db96d56Sopenharmony_cimaxx358 max -1e-777777777 -1e-411111111 -> -1E-777777777
2767db96d56Sopenharmony_ci
2777db96d56Sopenharmony_ci-- expanded list from min/max 754r purple prose
2787db96d56Sopenharmony_ci-- [explicit tests for exponent ordering]
2797db96d56Sopenharmony_cimaxx401 max  Inf    1.1     ->  Infinity
2807db96d56Sopenharmony_cimaxx402 max  1.1    1       ->  1.1
2817db96d56Sopenharmony_cimaxx403 max  1      1.0     ->  1
2827db96d56Sopenharmony_cimaxx404 max  1.0    0.1     ->  1.0
2837db96d56Sopenharmony_cimaxx405 max  0.1    0.10    ->  0.1
2847db96d56Sopenharmony_cimaxx406 max  0.10   0.100   ->  0.10
2857db96d56Sopenharmony_cimaxx407 max  0.10   0       ->  0.10
2867db96d56Sopenharmony_cimaxx408 max  0      0.0     ->  0
2877db96d56Sopenharmony_cimaxx409 max  0.0   -0       ->  0.0
2887db96d56Sopenharmony_cimaxx410 max  0.0   -0.0     ->  0.0
2897db96d56Sopenharmony_cimaxx411 max  0.00  -0.0     ->  0.00
2907db96d56Sopenharmony_cimaxx412 max  0.0   -0.00    ->  0.0
2917db96d56Sopenharmony_cimaxx413 max  0     -0.0     ->  0
2927db96d56Sopenharmony_cimaxx414 max  0     -0       ->  0
2937db96d56Sopenharmony_cimaxx415 max -0.0   -0       -> -0.0
2947db96d56Sopenharmony_cimaxx416 max -0     -0.100   -> -0
2957db96d56Sopenharmony_cimaxx417 max -0.100 -0.10    -> -0.100
2967db96d56Sopenharmony_cimaxx418 max -0.10  -0.1     -> -0.10
2977db96d56Sopenharmony_cimaxx419 max -0.1   -1.0     -> -0.1
2987db96d56Sopenharmony_cimaxx420 max -1.0   -1       -> -1.0
2997db96d56Sopenharmony_cimaxx421 max -1     -1.1     -> -1
3007db96d56Sopenharmony_cimaxx423 max -1.1   -Inf     -> -1.1
3017db96d56Sopenharmony_ci-- same with operands reversed
3027db96d56Sopenharmony_cimaxx431 max  1.1    Inf     ->  Infinity
3037db96d56Sopenharmony_cimaxx432 max  1      1.1     ->  1.1
3047db96d56Sopenharmony_cimaxx433 max  1.0    1       ->  1
3057db96d56Sopenharmony_cimaxx434 max  0.1    1.0     ->  1.0
3067db96d56Sopenharmony_cimaxx435 max  0.10   0.1     ->  0.1
3077db96d56Sopenharmony_cimaxx436 max  0.100  0.10    ->  0.10
3087db96d56Sopenharmony_cimaxx437 max  0      0.10    ->  0.10
3097db96d56Sopenharmony_cimaxx438 max  0.0    0       ->  0
3107db96d56Sopenharmony_cimaxx439 max -0      0.0     ->  0.0
3117db96d56Sopenharmony_cimaxx440 max -0.0    0.0     ->  0.0
3127db96d56Sopenharmony_cimaxx441 max -0.0    0.00    ->  0.00
3137db96d56Sopenharmony_cimaxx442 max -0.00   0.0     ->  0.0
3147db96d56Sopenharmony_cimaxx443 max -0.0    0       ->  0
3157db96d56Sopenharmony_cimaxx444 max -0      0       ->  0
3167db96d56Sopenharmony_cimaxx445 max -0     -0.0     -> -0.0
3177db96d56Sopenharmony_cimaxx446 max -0.100 -0       -> -0
3187db96d56Sopenharmony_cimaxx447 max -0.10  -0.100   -> -0.100
3197db96d56Sopenharmony_cimaxx448 max -0.1   -0.10    -> -0.10
3207db96d56Sopenharmony_cimaxx449 max -1.0   -0.1     -> -0.1
3217db96d56Sopenharmony_cimaxx450 max -1     -1.0     -> -1.0
3227db96d56Sopenharmony_cimaxx451 max -1.1   -1       -> -1
3237db96d56Sopenharmony_cimaxx453 max -Inf   -1.1     -> -1.1
3247db96d56Sopenharmony_ci-- largies
3257db96d56Sopenharmony_cimaxx460 max  1000   1E+3    ->  1E+3
3267db96d56Sopenharmony_cimaxx461 max  1E+3   1000    ->  1E+3
3277db96d56Sopenharmony_cimaxx462 max  1000  -1E+3    ->  1000
3287db96d56Sopenharmony_cimaxx463 max  1E+3  -1000    ->  1E+3
3297db96d56Sopenharmony_cimaxx464 max -1000   1E+3    ->  1E+3
3307db96d56Sopenharmony_cimaxx465 max -1E+3   1000    ->  1000
3317db96d56Sopenharmony_cimaxx466 max -1000  -1E+3    -> -1000
3327db96d56Sopenharmony_cimaxx467 max -1E+3  -1000    -> -1000
3337db96d56Sopenharmony_ci
3347db96d56Sopenharmony_ci-- rounding (results treated as though plus)
3357db96d56Sopenharmony_cimaxexponent: 999999999
3367db96d56Sopenharmony_ciminexponent: -999999999
3377db96d56Sopenharmony_ciprecision: 3
3387db96d56Sopenharmony_ci
3397db96d56Sopenharmony_cimaxx470 max  1      .5     ->  1
3407db96d56Sopenharmony_cimaxx471 max  10     5      ->  10
3417db96d56Sopenharmony_cimaxx472 max  100    50     ->  100
3427db96d56Sopenharmony_cimaxx473 max  1000   500    ->  1.00E+3 Rounded
3437db96d56Sopenharmony_cimaxx474 max  10000  5000   ->  1.00E+4 Rounded
3447db96d56Sopenharmony_cimaxx475 max  6      .5     ->  6
3457db96d56Sopenharmony_cimaxx476 max  66     5      ->  66
3467db96d56Sopenharmony_cimaxx477 max  666    50     ->  666
3477db96d56Sopenharmony_cimaxx478 max  6666   500    ->  6.67E+3 Rounded Inexact
3487db96d56Sopenharmony_cimaxx479 max  66666  5000   ->  6.67E+4 Rounded Inexact
3497db96d56Sopenharmony_cimaxx480 max  33333  5000   ->  3.33E+4 Rounded Inexact
3507db96d56Sopenharmony_cimaxx481 max  .5     1      ->  1
3517db96d56Sopenharmony_cimaxx482 max  .5     10     ->  10
3527db96d56Sopenharmony_cimaxx483 max  .5     100    ->  100
3537db96d56Sopenharmony_cimaxx484 max  .5     1000   ->  1.00E+3 Rounded
3547db96d56Sopenharmony_cimaxx485 max  .5     10000  ->  1.00E+4 Rounded
3557db96d56Sopenharmony_cimaxx486 max  .5     6      ->  6
3567db96d56Sopenharmony_cimaxx487 max  .5     66     ->  66
3577db96d56Sopenharmony_cimaxx488 max  .5     666    ->  666
3587db96d56Sopenharmony_cimaxx489 max  .5     6666   ->  6.67E+3 Rounded Inexact
3597db96d56Sopenharmony_cimaxx490 max  .5     66666  ->  6.67E+4 Rounded Inexact
3607db96d56Sopenharmony_cimaxx491 max  .5     33333  ->  3.33E+4 Rounded Inexact
3617db96d56Sopenharmony_ci
3627db96d56Sopenharmony_ci-- overflow tests
3637db96d56Sopenharmony_cimaxexponent: 999999999
3647db96d56Sopenharmony_ciminexponent: -999999999
3657db96d56Sopenharmony_ciprecision: 3
3667db96d56Sopenharmony_cimaxx500 max 9.999E+999999999  0 ->  Infinity Inexact Overflow Rounded
3677db96d56Sopenharmony_cimaxx501 max -9.999E+999999999 0 ->  0
3687db96d56Sopenharmony_ci
3697db96d56Sopenharmony_ci-- subnormals and underflow
3707db96d56Sopenharmony_ciprecision: 3
3717db96d56Sopenharmony_cimaxexponent: 999
3727db96d56Sopenharmony_ciminexponent: -999
3737db96d56Sopenharmony_cimaxx510 max  1.00E-999       0  ->   1.00E-999
3747db96d56Sopenharmony_cimaxx511 max  0.1E-999        0  ->   1E-1000   Subnormal
3757db96d56Sopenharmony_cimaxx512 max  0.10E-999       0  ->   1.0E-1000 Subnormal
3767db96d56Sopenharmony_cimaxx513 max  0.100E-999      0  ->   1.0E-1000 Subnormal Rounded
3777db96d56Sopenharmony_cimaxx514 max  0.01E-999       0  ->   1E-1001   Subnormal
3787db96d56Sopenharmony_ci-- next is rounded to Nmin
3797db96d56Sopenharmony_cimaxx515 max  0.999E-999      0  ->   1.00E-999 Inexact Rounded Subnormal Underflow
3807db96d56Sopenharmony_cimaxx516 max  0.099E-999      0  ->   1.0E-1000 Inexact Rounded Subnormal Underflow
3817db96d56Sopenharmony_cimaxx517 max  0.009E-999      0  ->   1E-1001   Inexact Rounded Subnormal Underflow
3827db96d56Sopenharmony_cimaxx518 max  0.001E-999      0  ->   0E-1001   Inexact Rounded Subnormal Underflow Clamped
3837db96d56Sopenharmony_cimaxx519 max  0.0009E-999     0  ->   0E-1001   Inexact Rounded Subnormal Underflow Clamped
3847db96d56Sopenharmony_cimaxx520 max  0.0001E-999     0  ->   0E-1001   Inexact Rounded Subnormal Underflow Clamped
3857db96d56Sopenharmony_ci
3867db96d56Sopenharmony_cimaxx530 max -1.00E-999       0  ->   0
3877db96d56Sopenharmony_cimaxx531 max -0.1E-999        0  ->   0
3887db96d56Sopenharmony_cimaxx532 max -0.10E-999       0  ->   0
3897db96d56Sopenharmony_cimaxx533 max -0.100E-999      0  ->   0
3907db96d56Sopenharmony_cimaxx534 max -0.01E-999       0  ->   0
3917db96d56Sopenharmony_cimaxx535 max -0.999E-999      0  ->   0
3927db96d56Sopenharmony_cimaxx536 max -0.099E-999      0  ->   0
3937db96d56Sopenharmony_cimaxx537 max -0.009E-999      0  ->   0
3947db96d56Sopenharmony_cimaxx538 max -0.001E-999      0  ->   0
3957db96d56Sopenharmony_cimaxx539 max -0.0009E-999     0  ->   0
3967db96d56Sopenharmony_cimaxx540 max -0.0001E-999     0  ->   0
3977db96d56Sopenharmony_ci
3987db96d56Sopenharmony_ci-- misalignment traps for little-endian
3997db96d56Sopenharmony_ciprecision: 9
4007db96d56Sopenharmony_cimaxx551 max      1.0       0.1  -> 1.0
4017db96d56Sopenharmony_cimaxx552 max      0.1       1.0  -> 1.0
4027db96d56Sopenharmony_cimaxx553 max     10.0       0.1  -> 10.0
4037db96d56Sopenharmony_cimaxx554 max      0.1      10.0  -> 10.0
4047db96d56Sopenharmony_cimaxx555 max      100       1.0  -> 100
4057db96d56Sopenharmony_cimaxx556 max      1.0       100  -> 100
4067db96d56Sopenharmony_cimaxx557 max     1000      10.0  -> 1000
4077db96d56Sopenharmony_cimaxx558 max     10.0      1000  -> 1000
4087db96d56Sopenharmony_cimaxx559 max    10000     100.0  -> 10000
4097db96d56Sopenharmony_cimaxx560 max    100.0     10000  -> 10000
4107db96d56Sopenharmony_cimaxx661 max   100000    1000.0  -> 100000
4117db96d56Sopenharmony_cimaxx662 max   1000.0    100000  -> 100000
4127db96d56Sopenharmony_cimaxx663 max  1000000   10000.0  -> 1000000
4137db96d56Sopenharmony_cimaxx664 max  10000.0   1000000  -> 1000000
4147db96d56Sopenharmony_ci
4157db96d56Sopenharmony_ci-- payload decapitate
4167db96d56Sopenharmony_ciprecision: 5
4177db96d56Sopenharmony_cimaxx670 max      11 -sNaN12345678901 -> -NaN78901  Invalid_operation
4187db96d56Sopenharmony_ci
4197db96d56Sopenharmony_ci-- Null tests
4207db96d56Sopenharmony_cimaxx900 max 10  #  -> NaN Invalid_operation
4217db96d56Sopenharmony_cimaxx901 max  # 10  -> NaN Invalid_operation
4227db96d56Sopenharmony_ci
4237db96d56Sopenharmony_ci
4247db96d56Sopenharmony_ci
425