------------------------------------------------------------------------
-- abs.decTest -- decimal absolute value --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- This set of tests primarily tests the existence of the operator.
-- Additon, subtraction, rounding, and more overflows are tested
------/cancell----------------------------------------------------------
-- add.decTest -- decimal addition --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
precision: 9
rounding: half_up
------------------------------------------------------------------------\r
-- and.decTest -- digitwise logical AND --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 9\r
------------------------------------------------------------------------
-- base.decTest -- base decimal <--> string conversions --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
extended: 1
-- This file tests base conversions from string to a decimal number
------------------------------------------------------------------------
-- clamp.decTest -- clamped exponent tests (format-independent) --
--- Copyright (c) IBM Corporation, 2000, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 2000, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- This set of tests uses the same limits as the 8-byte concrete
-- representation, but applies clamping without using format-specific
------------------------------------------------------------------------\r
-- class.decTest -- Class operations --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- [New 2006.11.27]\r
\r
------------------------------------------------------------------------
-- compare.decTest -- decimal comparison that allows quiet NaNs --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot
------------------------------------------------------------------------\r
-- comparetotal.decTest -- decimal comparison using total ordering --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- Note that we cannot assume add/subtract tests cover paths adequately,\r
-- here, because the code might be quite different (comparison cannot\r
------------------------------------------------------------------------\r
-- comparetotmag.decTest -- decimal comparison, abs. total ordering --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- Note that it cannot be assumed that add/subtract tests cover paths\r
-- for this operation adequately, here, because the code might be\r
------------------------------------------------------------------------\r
-- copy.decTest -- quiet copy --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 9\r
------------------------------------------------------------------------\r
-- copyAbs.decTest -- quiet copy and set sign to zero --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 9\r
------------------------------------------------------------------------\r
-- copyNegate.decTest -- quiet copy and negate --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 9\r
------------------------------------------------------------------------\r
-- copysign.decTest -- quiet copy with sign from rhs --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 9\r
------------------------------------------------------------------------\r
-- ddAbs.decTest -- decDouble absolute value, heeding sNaN --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
precision: 16\r
maxExponent: 384\r
------------------------------------------------------------------------\r
-- ddAdd.decTest -- decDouble addition --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This set of tests are for decDoubles only; all arguments are\r
-- representable in a decDouble\r
ddadd435 add 77e-19 10 -> 10.00000000000000 Inexact Rounded\r
ddadd436 add 77e-299 10 -> 10.00000000000000 Inexact Rounded\r
\r
+-- fastpath boundary (more in dqadd)\r
+-- 1234567890123456\r
+ddadd539 add '4444444444444444' '3333333333333333' -> '7777777777777777'\r
+ddadd540 add '4444444444444444' '4444444444444444' -> '8888888888888888'\r
+ddadd541 add '4444444444444444' '5555555555555555' -> '9999999999999999'\r
+ddadd542 add '3333333333333333' '4444444444444444' -> '7777777777777777'\r
+ddadd543 add '4444444444444444' '4444444444444444' -> '8888888888888888'\r
+ddadd544 add '5555555555555555' '4444444444444444' -> '9999999999999999'\r
+ddadd545 add '3000004000000000' '3000000000000040' -> '6000004000000040'\r
+ddadd546 add '3000000400000000' '4000000000000400' -> '7000000400000400'\r
+ddadd547 add '3000000040000000' '5000000000004000' -> '8000000040004000'\r
+ddadd548 add '4000000004000000' '3000000000040000' -> '7000000004040000'\r
+ddadd549 add '4000000000400000' '4000000000400000' -> '8000000000800000'\r
+ddadd550 add '4000000000040000' '5000000004000000' -> '9000000004040000'\r
+ddadd551 add '5000000000004000' '3000000040000000' -> '8000000040004000'\r
+ddadd552 add '5000000000000400' '4000000400000000' -> '9000000400000400'\r
+ddadd553 add '5000000000000040' '5000004000000000' -> 1.000000400000004E+16 Rounded\r
+-- check propagation\r
+ddadd554 add '8999999999999999' '0000000000000001' -> 9000000000000000\r
+ddadd555 add '0000000000000001' '8999999999999999' -> 9000000000000000\r
+ddadd556 add '0999999999999999' '0000000000000001' -> 1000000000000000\r
+ddadd557 add '0000000000000001' '0999999999999999' -> 1000000000000000\r
+ddadd558 add '4444444444444444' '4555555555555556' -> 9000000000000000\r
+ddadd559 add '4555555555555556' '4444444444444444' -> 9000000000000000\r
+\r
-- negative ulps\r
ddadd6440 add 1 -77e-14 -> 0.99999999999923\r
ddadd6441 add 1 -77e-15 -> 0.999999999999923\r
ddadd7575 add 1E-383 -1E-398 -> 9.99999999999999E-384 Subnormal\r
ddadd7576 add -1E-383 +1E-398 -> -9.99999999999999E-384 Subnormal\r
\r
+-- and another curious case\r
+ddadd7577 add 7.000000000000E-385 -1.00000E-391 -> 6.999999000000E-385 Subnormal\r
+\r
-- check overflow edge case\r
-- 1234567890123456\r
ddadd7972 apply 9.999999999999999E+384 -> 9.999999999999999E+384\r
------------------------------------------------------------------------\r
-- ddAnd.decTest -- digitwise logical AND for decDoubles --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
precision: 16\r
maxExponent: 384\r
------------------------------------------------------------------------\r
-- ddBase.decTest -- base decDouble <--> string conversions --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This file tests base conversions from string to a decimal number\r
-- and back to a string (in Scientific form)\r
ddbas1042 toSci 1.1111111111152445E-384 -> 1.11111111111524E-384 Inexact Rounded Subnormal Underflow\r
ddbas1043 toSci 1.1111111111152446E-384 -> 1.11111111111524E-384 Inexact Rounded Subnormal Underflow\r
\r
+-- clamped large normals\r
+ddbas1070 toSci 1E+369 -> 1E+369\r
+ddbas1071 toSci 1E+370 -> 1.0E+370 Clamped\r
+ddbas1072 toSci 1E+378 -> 1.000000000E+378 Clamped\r
+ddbas1073 toSci 1E+384 -> 1.000000000000000E+384 Clamped\r
+ddbas1074 toSci 1E+385 -> Infinity Overflow Inexact Rounded\r
+\r
+\r
-- clamped zeros [see also clamp.decTest]\r
ddbas1075 toSci 0e+10000 -> 0E+369 Clamped\r
ddbas1076 toSci 0e-10000 -> 0E-398 Clamped\r
------------------------------------------------------------------------\r
-- ddCanonical.decTest -- test decDouble canonical results --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This file tests that copy operations leave uncanonical operands\r
-- unchanged, and vice versa\r
------------------------------------------------------------------------\r
-- ddClass.decTest -- decDouble Class operations --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- [New 2006.11.27]\r
precision: 16\r
------------------------------------------------------------------------\r
-- ddCompare.decTest -- decDouble comparison that allows quiet NaNs --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- Note that we cannot assume add/subtract tests cover paths adequately,\r
-- here, because the code might be quite different (comparison cannot\r
------------------------------------------------------------------------\r
-- ddCompareSig.decTest -- decDouble comparison; all NaNs signal --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- Note that we cannot assume add/subtract tests cover paths adequately,\r
-- here, because the code might be quite different (comparison cannot\r
------------------------------------------------------------------------\r
-- ddCompareTotal.decTest -- decDouble comparison using total ordering--\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- Note that we cannot assume add/subtract tests cover paths adequately,\r
-- here, because the code might be quite different (comparison cannot\r
------------------------------------------------------------------------\r
-- ddCompareTotalMag.decTest -- decDouble comparison; abs. total order--\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- Note that we cannot assume add/subtract tests cover paths adequately,\r
-- here, because the code might be quite different (comparison cannot\r
------------------------------------------------------------------------\r
-- ddCopy.decTest -- quiet decDouble copy --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decDoubles.\r
precision: 16\r
------------------------------------------------------------------------\r
-- ddCopyAbs.decTest -- quiet decDouble copy and set sign to zero --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decDoubles.\r
precision: 16\r
------------------------------------------------------------------------\r
-- ddCopyNegate.decTest -- quiet decDouble copy and negate --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decDoubles.\r
precision: 16\r
------------------------------------------------------------------------\r
-- ddCopySign.decTest -- quiet decDouble copy with sign from rhs --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decDoubles.\r
precision: 16\r
------------------------------------------------------------------------\r
-- ddDivide.decTest -- decDouble division --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
precision: 16\r
maxExponent: 384\r
------------------------------------------------------------------------\r
-- ddDivideInt.decTest -- decDouble integer division --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
precision: 16\r
maxExponent: 384\r
------------------------------------------------------------------------\r
-- ddEncode.decTest -- decimal eight-byte format testcases --\r
--- Copyright (c) IBM Corporation, 2000, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2000, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-- [Previously called decimal64.decTest]\r
-version: 2.57\r
+version: 2.58\r
\r
-- This set of tests is for the eight-byte concrete representation.\r
-- Its characteristics are:\r
\r
-- for narrowing\r
decd840 apply #2870000000000000 -> 2.000000000000000E-99\r
+\r
+-- some miscellaneous\r
+decd850 apply #0004070000000000 -> 7.000000000000E-385 Subnormal\r
+decd851 apply #0008000000020000 -> 1.00000E-391 Subnormal\r
+\r
------------------------------------------------------------------------\r
-- ddFMA.decTest -- decDouble Fused Multiply Add --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
precision: 16\r
maxExponent: 384\r
------------------------------------------------------------------------\r
-- ddInvert.decTest -- digitwise logical INVERT for decDoubles --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
precision: 16\r
maxExponent: 384\r
------------------------------------------------------------------------\r
-- ddLogB.decTest -- integral 754r adjusted exponent, for decDoubles --\r
--- Copyright (c) IBM Corporation, 2005, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2005, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
precision: 16\r
maxExponent: 384\r
------------------------------------------------------------------------\r
-- ddMax.decTest -- decDouble maxnum --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- we assume that base comparison is tested in compare.decTest, so\r
-- these mainly cover special cases and rounding\r
------------------------------------------------------------------------\r
-- ddMaxMag.decTest -- decDouble maxnummag --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- we assume that base comparison is tested in compare.decTest, so\r
-- these mainly cover special cases and rounding\r
------------------------------------------------------------------------\r
-- ddMin.decTest -- decDouble minnum --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- we assume that base comparison is tested in compare.decTest, so\r
-- these mainly cover special cases and rounding\r
------------------------------------------------------------------------\r
-- ddMinMag.decTest -- decDouble minnummag --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- we assume that base comparison is tested in compare.decTest, so\r
-- these mainly cover special cases and rounding\r
------------------------------------------------------------------------\r
-- ddMinus.decTest -- decDouble 0-x --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decDoubles.\r
precision: 16\r
------------------------------------------------------------------------\r
-- ddMultiply.decTest -- decDouble multiplication --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This set of tests are for decDoubles only; all arguments are\r
-- representable in a decDouble\r
-- tryzeros cases\r
ddmul504 multiply 0E-260 1000E-260 -> 0E-398 Clamped\r
ddmul505 multiply 100E+260 0E+260 -> 0E+369 Clamped\r
+-- 65K-1 case\r
+ddmul506 multiply 77.1 850 -> 65535.0\r
\r
-- mixed with zeros\r
ddmul541 multiply 0 -1 -> -0\r
-- 1 234567890123456\r
ddmul900 multiply 0.3000000000E-191 0.3000000000E-191 -> 9.00000000000000E-384 Subnormal Rounded\r
ddmul901 multiply 0.3000000001E-191 0.3000000001E-191 -> 9.00000000600000E-384 Underflow Inexact Subnormal Rounded\r
-ddmul902 multiply 9.999999999999999E-383 0.0999999999999 -> 9.99999999999000E-384 Underflow Inexact Subnormal Rounded\r
-ddmul903 multiply 9.999999999999999E-383 0.09999999999999 -> 9.99999999999900E-384 Underflow Inexact Subnormal Rounded\r
-ddmul904 multiply 9.999999999999999E-383 0.099999999999999 -> 9.99999999999990E-384 Underflow Inexact Subnormal Rounded\r
-ddmul905 multiply 9.999999999999999E-383 0.0999999999999999 -> 9.99999999999999E-384 Underflow Inexact Subnormal Rounded\r
--- prove operands are exact\r
-ddmul906 multiply 9.999999999999999E-383 1 -> 9.999999999999999E-383\r
-ddmul907 multiply 1 0.09999999999999999 -> 0.09999999999999999\r
--- the next rounds to Nmin\r
-ddmul908 multiply 9.999999999999999E-383 0.09999999999999999 -> 1.000000000000000E-383 Underflow Inexact Subnormal Rounded\r
+ddmul902 multiply 9.999999999999999E-383 0.0999999999999 -> 9.99999999999000E-384 Underflow Inexact Subnormal Rounded\r
+ddmul903 multiply 9.999999999999999E-383 0.09999999999999 -> 9.99999999999900E-384 Underflow Inexact Subnormal Rounded\r
+ddmul904 multiply 9.999999999999999E-383 0.099999999999999 -> 9.99999999999990E-384 Underflow Inexact Subnormal Rounded\r
+ddmul905 multiply 9.999999999999999E-383 0.0999999999999999 -> 9.99999999999999E-384 Underflow Inexact Subnormal Rounded\r
+-- The next rounds to Nmin (b**emin); this is the distinguishing case\r
+-- for detecting tininess (before or after rounding) -- if after\r
+-- rounding then the result would be the same, but the Underflow flag\r
+-- would not be set\r
+ddmul906 multiply 9.999999999999999E-383 0.09999999999999999 -> 1.000000000000000E-383 Underflow Inexact Subnormal Rounded\r
+-- prove those operands were exact\r
+ddmul907 multiply 9.999999999999999E-383 1 -> 9.999999999999999E-383\r
+ddmul908 multiply 1 0.09999999999999999 -> 0.09999999999999999\r
+\r
+-- reducing tiniest\r
+ddmul910 multiply 1e-398 0.99 -> 1E-398 Subnormal Inexact Rounded Underflow\r
+ddmul911 multiply 1e-398 0.75 -> 1E-398 Subnormal Inexact Rounded Underflow\r
+ddmul912 multiply 1e-398 0.5 -> 0E-398 Subnormal Inexact Rounded Underflow Clamped\r
+ddmul913 multiply 1e-398 0.25 -> 0E-398 Subnormal Inexact Rounded Underflow Clamped\r
+ddmul914 multiply 1e-398 0.01 -> 0E-398 Subnormal Inexact Rounded Underflow Clamped\r
\r
-- hugest\r
-ddmul909 multiply 9999999999999999 9999999999999999 -> 9.999999999999998E+31 Inexact Rounded\r
+ddmul920 multiply 9999999999999999 9999999999999999 -> 9.999999999999998E+31 Inexact Rounded\r
\r
-- power-of-ten edge cases\r
ddmul1001 multiply 1 10 -> 10\r
ddmul1098 multiply 10000 99999999999 -> 999999999990000\r
\r
\r
-\r
-\r
-- Null tests\r
ddmul9990 multiply 10 # -> NaN Invalid_operation\r
ddmul9991 multiply # 10 -> NaN Invalid_operation\r
\r
-\r
-\r
-\r
------------------------------------------------------------------------\r
-- ddNextMinus.decTest -- decDouble next that is less [754r nextdown] --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decDoubles.\r
precision: 16\r
------------------------------------------------------------------------\r
-- ddNextPlus.decTest -- decDouble next that is greater [754r nextup] --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decDoubles.\r
precision: 16\r
------------------------------------------------------------------------\r
-- ddNextToward.decTest -- decDouble next toward rhs [754r nextafter] --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decDoubles.\r
precision: 16\r
------------------------------------------------------------------------\r
-- ddOr.decTest -- digitwise logical OR for decDoubles --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
precision: 16\r
maxExponent: 384\r
------------------------------------------------------------------------\r
-- ddPlus.decTest -- decDouble 0+x --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decDoubles.\r
precision: 16\r
------------------------------------------------------------------------\r
-- ddQuantize.decTest -- decDouble quantize operation --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- Most of the tests here assume a "regular pattern", where the\r
-- sign and coefficient are +1.\r
ddqua1021 quantize 8.666666666666000E+384 1.000000000000000E+384 -> 8.666666666666000E+384\r
ddqua1022 quantize -8.666666666666000E+384 1.000000000000000E+384 -> -8.666666666666000E+384\r
ddqua1027 quantize 8.666666666666000E+323 1E+31 -> NaN Invalid_operation\r
-ddqua1030 quantize 8.66666666E+3 1E+3 -> 9E+3 Inexact Rounded\r
+ddqua1029 quantize 8.66666666E+3 1E+3 -> 9E+3 Inexact Rounded\r
+\r
+\r
+--ddqua1030 quantize 8.666666666666000E+384 1E+384 -> 9.000000000000000E+384 Rounded Inexact\r
+--ddqua1031 quantize 8.666666666666000E+384 1E+384 -> 8.666666666666000E+384 Rounded\r
+--ddqua1032 quantize 8.666666666666000E+384 1E+383 -> 8.666666666666000E+384 Rounded\r
+--ddqua1033 quantize 8.666666666666000E+384 1E+382 -> 8.666666666666000E+384 Rounded\r
+--ddqua1034 quantize 8.666666666666000E+384 1E+381 -> 8.666666666666000E+384 Rounded\r
+--ddqua1035 quantize 8.666666666666000E+384 1E+380 -> 8.666666666666000E+384 Rounded\r
\r
-- Int and uInt32 edge values for testing conversions\r
ddqua1040 quantize -2147483646 0 -> -2147483646\r
------------------------------------------------------------------------\r
-- ddReduce.decTest -- remove trailing zeros from a decDouble --\r
--- Copyright (c) IBM Corporation, 2003, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2003, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
precision: 16\r
maxExponent: 384\r
------------------------------------------------------------------------\r
-- ddRemainder.decTest -- decDouble remainder --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
precision: 16\r
maxExponent: 384\r
------------------------------------------------------------------------\r
-- ddRemainderNear.decTest -- decDouble remainder-near --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
precision: 16\r
maxExponent: 384\r
------------------------------------------------------------------------\r
-- ddRotate.decTest -- rotate a decDouble coefficient left or right --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
precision: 16\r
maxExponent: 384\r
------------------------------------------------------------------------\r
-- ddSameQuantum.decTest -- check decDouble quantums match --\r
--- Copyright (c) IBM Corporation, 2001, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2001, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decDoubles.\r
precision: 16\r
------------------------------------------------------------------------\r
-- ddScalebB.decTest -- scale a decDouble by powers of 10 --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
precision: 16\r
maxExponent: 384\r
------------------------------------------------------------------------\r
-- ddShift.decTest -- shift decDouble coefficient left or right --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
precision: 16\r
maxExponent: 384\r
------------------------------------------------------------------------\r
-- ddSubtract.decTest -- decDouble subtraction --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This set of tests are for decDoubles only; all arguments are\r
-- representable in a decDouble\r
------------------------------------------------------------------------\r
-- ddToIntegral.decTest -- round Double to integral value --\r
--- Copyright (c) IBM Corporation, 2001, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2001, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This set of tests tests the extended specification 'round-to-integral\r
-- value-exact' operations (from IEEE 854, later modified in 754r).\r
------------------------------------------------------------------------\r
-- ddXor.decTest -- digitwise logical XOR for decDoubles --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
precision: 16\r
maxExponent: 384\r
------------------------------------------------------------------------
-- decDouble.decTest -- run all decDouble decimal arithmetic tests --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- decDouble tests
dectest: ddAbs
------------------------------------------------------------------------
-- decQuad.decTest -- run all decQuad decimal arithmetic tests --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- decQuad tests
dectest: dqAbs
------------------------------------------------------------------------
-- decSingle.decTest -- run all decSingle decimal arithmetic tests --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- decSingle tests
dectest: dsBase
------------------------------------------------------------------------
-- divide.decTest -- decimal division --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
extended: 1
precision: 9
------------------------------------------------------------------------
-- divideint.decTest -- decimal integer division --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
extended: 1
precision: 9
------------------------------------------------------------------------\r
-- dqAbs.decTest -- decQuad absolute value, heeding sNaN --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
clamp: 1\r
------------------------------------------------------------------------\r
-- dqAdd.decTest -- decQuad addition --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This set of tests are for decQuads only; all arguments are\r
-- representable in a decQuad\r
dqadd435 add 77e-37 10 -> 10.00000000000000000000000000000000 Inexact Rounded\r
dqadd436 add 77e-299 10 -> 10.00000000000000000000000000000000 Inexact Rounded\r
\r
+-- fastpath boundaries\r
+-- 1234567890123456789012345678901234\r
+dqadd501 add '4444444444444444444444444444444444' '5555555555555555555555555555555555' -> '9999999999999999999999999999999999'\r
+dqadd502 add '4444444444444444444444444444444444' '4555555555555555555555555555555555' -> '8999999999999999999999999999999999'\r
+dqadd503 add '4444444444444444444444444444444444' '3555555555555555555055555555555555' -> '7999999999999999999499999999999999'\r
+dqadd504 add '4444444444444444444444444444444444' '3955555555555555555555555555555555' -> '8399999999999999999999999999999999'\r
+dqadd505 add '4444444444444444444444444444444444' '4955555555555555555555555555555555' -> '9399999999999999999999999999999999'\r
+dqadd506 add '4444444444444444444444444444444444' '5955555555555555555555555555555555' -> 1.040000000000000000000000000000000E+34 Inexact Rounded\r
+dqadd511 add '344444444444444444444444444444444' '555555555555555555555555555555555' -> '899999999999999999999999999999999'\r
+dqadd512 add '34444444444444444444444444444444' '55555555555555555555555555555555' -> '89999999999999999999999999999999'\r
+dqadd513 add '3444444444444444444444444444444' '5555555555555555555555555555555' -> '8999999999999999999999999999999'\r
+dqadd514 add '344444444444444444444444444444' '555555555555555555555555555555' -> '899999999999999999999999999999'\r
+dqadd515 add '34444444444444444444444444444' '55555555555555555555555555555' -> '89999999999999999999999999999'\r
+dqadd516 add '3444444444444444444444444444' '5555555555555555555555555555' -> '8999999999999999999999999999'\r
+dqadd517 add '344444444444444444444444444' '555555555555555555555555555' -> '899999999999999999999999999'\r
+dqadd518 add '34444444444444444444444444' '55555555555555555555555555' -> '89999999999999999999999999'\r
+dqadd519 add '3444444444444444444444444' '5555555555555555555555555' -> '8999999999999999999999999'\r
+dqadd520 add '344444444444444444444444' '555555555555555555555555' -> '899999999999999999999999'\r
+dqadd521 add '34444444444444444444444' '55555555555555555555555' -> '89999999999999999999999'\r
+dqadd522 add '3444444444444444444444' '5555555555555555555555' -> '8999999999999999999999'\r
+dqadd523 add '4444444444444444444444' '3333333333333333333333' -> '7777777777777777777777'\r
+dqadd524 add '344444444444444444444' '555555555555555555555' -> '899999999999999999999'\r
+dqadd525 add '34444444444444444444' '55555555555555555555' -> '89999999999999999999'\r
+dqadd526 add '3444444444444444444' '5555555555555555555' -> '8999999999999999999'\r
+dqadd527 add '344444444444444444' '555555555555555555' -> '899999999999999999'\r
+dqadd528 add '34444444444444444' '55555555555555555' -> '89999999999999999'\r
+dqadd529 add '3444444444444444' '5555555555555555' -> '8999999999999999'\r
+dqadd530 add '344444444444444' '555555555555555' -> '899999999999999'\r
+dqadd531 add '34444444444444' '55555555555555' -> '89999999999999'\r
+dqadd532 add '3444444444444' '5555555555555' -> '8999999999999'\r
+dqadd533 add '344444444444' '555555555555' -> '899999999999'\r
+dqadd534 add '34444444444' '55555555555' -> '89999999999'\r
+dqadd535 add '3444444444' '5555555555' -> '8999999999'\r
+dqadd536 add '344444444' '555555555' -> '899999999'\r
+dqadd537 add '34444444' '55555555' -> '89999999'\r
+dqadd538 add '3444444' '5555555' -> '8999999'\r
+dqadd539 add '344444' '555555' -> '899999'\r
+dqadd540 add '34444' '55555' -> '89999'\r
+dqadd541 add '3444' '5555' -> '8999'\r
+dqadd542 add '344' '555' -> '899'\r
+dqadd543 add '34' '55' -> '89'\r
+dqadd544 add '3' '5' -> '8'\r
+\r
+dqadd545 add '3000004000000000000000000000000000' '3000000000000040000000000000000000' -> '6000004000000040000000000000000000'\r
+dqadd546 add '3000000400000000000000000000000000' '4000000000000400000000000000000000' -> '7000000400000400000000000000000000'\r
+dqadd547 add '3000000040000000000000000000000000' '5000000000004000000000000000000000' -> '8000000040004000000000000000000000'\r
+dqadd548 add '4000000004000000000000000000000000' '3000000000040000000000000000000000' -> '7000000004040000000000000000000000'\r
+dqadd549 add '4000000000400000000000000000000000' '4000000000400000000000000000000000' -> '8000000000800000000000000000000000'\r
+dqadd550 add '4000000000040000000000000000000000' '5000000004000000000000000000000000' -> '9000000004040000000000000000000000'\r
+dqadd551 add '5000000000004000000000000000000000' '3000000040000000000000000000000000' -> '8000000040004000000000000000000000'\r
+dqadd552 add '5000000000000400000000000000000000' '4000000400000000000000000000000000' -> '9000000400000400000000000000000000'\r
+dqadd553 add '5000000000000040000000000000000000' '5000004000000000000000000000000000' -> 1.000000400000004000000000000000000E+34 Rounded\r
+-- check propagation\r
+dqadd554 add '8999999999999999999999999999999999' '0000000000000000000000000000000001' -> 9000000000000000000000000000000000\r
+dqadd555 add '0000000000000000000000000000000001' '8999999999999999999999999999999999' -> 9000000000000000000000000000000000\r
+dqadd556 add '4444444444444444444444444444444444' '4555555555555555555555555555555556' -> 9000000000000000000000000000000000\r
+dqadd557 add '4555555555555555555555555555555556' '4444444444444444444444444444444444' -> 9000000000000000000000000000000000\r
+\r
-- negative ulps\r
dqadd6440 add 1 -77e-32 -> 0.99999999999999999999999999999923\r
dqadd6441 add 1 -77e-33 -> 0.999999999999999999999999999999923\r
------------------------------------------------------------------------\r
-- dqAnd.decTest -- digitwise logical AND for decQuads --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
clamp: 1\r
------------------------------------------------------------------------\r
-- dqBase.decTest -- base decQuad <--> string conversions --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This file tests base conversions from string to a decimal number\r
-- and back to a string (in Scientific form)\r
------------------------------------------------------------------------\r
-- dqCanonical.decTest -- test decQuad canonical results --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This file tests that copy operations leave uncanonical operands\r
-- unchanged, and vice versa\r
------------------------------------------------------------------------\r
-- dqClass.decTest -- decQuad Class operations --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- [New 2006.11.27]\r
\r
------------------------------------------------------------------------\r
-- dqCompare.decTest -- decQuad comparison that allows quiet NaNs --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- Note that we cannot assume add/subtract tests cover paths adequately,\r
-- here, because the code might be quite different (comparison cannot\r
------------------------------------------------------------------------\r
-- dqCompareSig.decTest -- decQuad comparison; all NaNs signal --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- Note that we cannot assume add/subtract tests cover paths adequately,\r
-- here, because the code might be quite different (comparison cannot\r
------------------------------------------------------------------------\r
-- dqCompareTotal.decTest -- decQuad comparison using total ordering --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- Note that we cannot assume add/subtract tests cover paths adequately,\r
-- here, because the code might be quite different (comparison cannot\r
------------------------------------------------------------------------\r
-- dqCompareTotalMag.decTest -- decQuad comparison; abs. total order --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- Note that we cannot assume add/subtract tests cover paths adequately,\r
-- here, because the code might be quite different (comparison cannot\r
------------------------------------------------------------------------\r
-- dqCopy.decTest -- quiet decQuad copy --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decQuads.\r
extended: 1\r
------------------------------------------------------------------------\r
-- dqCopyAbs.decTest -- quiet decQuad copy and set sign to zero --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decQuads.\r
extended: 1\r
------------------------------------------------------------------------\r
-- dqCopyNegate.decTest -- quiet decQuad copy and negate --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decQuads.\r
extended: 1\r
------------------------------------------------------------------------\r
-- dqCopySign.decTest -- quiet decQuad copy with sign from rhs --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decQuads.\r
extended: 1\r
------------------------------------------------------------------------\r
-- dqDivide.decTest -- decQuad division --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
clamp: 1\r
------------------------------------------------------------------------\r
-- dqDivideInt.decTest -- decQuad integer division --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
clamp: 1\r
------------------------------------------------------------------------\r
-- dqEncode.decTest -- decimal sixteen-byte format testcases --\r
--- Copyright (c) IBM Corporation, 2000, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2000, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-- [Previously called decimal128.decTest]\r
-version: 2.57\r
+version: 2.58\r
\r
-- This set of tests is for the sixteen-byte concrete representation.\r
-- Its characteristics are:\r
------------------------------------------------------------------------\r
-- dqFMA.decTest -- decQuad Fused Multiply Add --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
clamp: 1\r
------------------------------------------------------------------------\r
-- dqInvert.decTest -- digitwise logical INVERT for decQuads --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
clamp: 1\r
------------------------------------------------------------------------\r
-- dqLogB.decTest -- integral 754r adjusted exponent, for decQuads --\r
--- Copyright (c) IBM Corporation, 2005, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2005, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
clamp: 1\r
------------------------------------------------------------------------\r
-- dqMax.decTest -- decQuad maxnum --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- we assume that base comparison is tested in compare.decTest, so\r
-- these mainly cover special cases and rounding\r
------------------------------------------------------------------------\r
-- dqMaxMag.decTest -- decQuad maxnummag --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- we assume that base comparison is tested in compare.decTest, so\r
-- these mainly cover special cases and rounding\r
------------------------------------------------------------------------\r
-- dqMin.decTest -- decQuad minnum --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- we assume that base comparison is tested in compare.decTest, so\r
-- these mainly cover special cases and rounding\r
------------------------------------------------------------------------\r
-- dqMinMag.decTest -- decQuad minnummag --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- we assume that base comparison is tested in compare.decTest, so\r
-- these mainly cover special cases and rounding\r
------------------------------------------------------------------------\r
-- dqMinus.decTest -- decQuad 0-x --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decQuads.\r
extended: 1\r
------------------------------------------------------------------------\r
-- dqMultiply.decTest -- decQuad multiplication --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This set of tests are for decQuads only; all arguments are\r
-- representable in a decQuad\r
------------------------------------------------------------------------\r
-- dqNextMinus.decTest -- decQuad next that is less [754r nextdown] --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decQuads.\r
extended: 1\r
------------------------------------------------------------------------\r
-- dqNextPlus.decTest -- decQuad next that is greater [754r nextup] --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decQuads.\r
extended: 1\r
------------------------------------------------------------------------\r
-- dqNextToward.decTest -- decQuad next toward rhs [754r nextafter] --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decQuads.\r
extended: 1\r
------------------------------------------------------------------------\r
-- dqOr.decTest -- digitwise logical OR for decQuads --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
clamp: 1\r
------------------------------------------------------------------------\r
-- dqPlus.decTest -- decQuad 0+x --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decQuads.\r
extended: 1\r
------------------------------------------------------------------------\r
-- dqQuantize.decTest -- decQuad quantize operation --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- Most of the tests here assume a "regular pattern", where the\r
-- sign and coefficient are +1.\r
dqqua515 quantize -0E+1 1e-1 -> -0.0\r
dqqua516 quantize -0E+1 1e0 -> -0\r
dqqua517 quantize -0E+1 1e+1 -> -0E+1\r
+-- #519 here once a problem\r
+dqqua518 quantize 0 0E-3 -> 0.000\r
+dqqua519 quantize 0 0E-33 -> 0E-33\r
+dqqua520 quantize 0.00000000000000000000000000000000 0E-33 -> 0E-33\r
+dqqua521 quantize 0.000000000000000000000000000000000 0E-33 -> 0E-33\r
+\r
+-- Some non-zeros with lots of padding on the right\r
+dqqua523 quantize 1 0E-33 -> 1.000000000000000000000000000000000\r
+dqqua524 quantize 12 0E-32 -> 12.00000000000000000000000000000000\r
+dqqua525 quantize 123 0E-31 -> 123.0000000000000000000000000000000\r
+dqqua526 quantize 123 0E-32 -> NaN Invalid_operation\r
+dqqua527 quantize 123.4 0E-31 -> 123.4000000000000000000000000000000\r
+dqqua528 quantize 123.4 0E-32 -> NaN Invalid_operation\r
\r
-- Suspicious RHS values\r
-dqqua520 quantize 1.234 1e359 -> 0E+359 Inexact Rounded\r
-dqqua521 quantize 123.456 1e359 -> 0E+359 Inexact Rounded\r
-dqqua522 quantize 1.234 1e359 -> 0E+359 Inexact Rounded\r
-dqqua523 quantize 123.456 1e359 -> 0E+359 Inexact Rounded\r
--- next four are "won't fit" overfl\r
-dqqua526 quantize 1.234 1e-299 -> NaN Invalid_operation\r
-dqqua527 quantize 123.456 1e-299 -> NaN Invalid_operation\r
-dqqua528 quantize 1.234 1e-299 -> NaN Invalid_operation\r
-dqqua529 quantize 123.456 1e-299 -> NaN Invalid_operation\r
-\r
-dqqua532 quantize 1.234E+299 1e299 -> 1E+299 Inexact Rounded\r
-dqqua533 quantize 1.234E+298 1e299 -> 0E+299 Inexact Rounded\r
-dqqua534 quantize 1.234 1e299 -> 0E+299 Inexact Rounded\r
-dqqua537 quantize 0 1e-299 -> 0E-299\r
+dqqua530 quantize 1.234 1e359 -> 0E+359 Inexact Rounded\r
+dqqua531 quantize 123.456 1e359 -> 0E+359 Inexact Rounded\r
+dqqua532 quantize 1.234 1e359 -> 0E+359 Inexact Rounded\r
+dqqua533 quantize 123.456 1e359 -> 0E+359 Inexact Rounded\r
+-- next four are "won't fit" overflows\r
+dqqua536 quantize 1.234 1e-299 -> NaN Invalid_operation\r
+dqqua537 quantize 123.456 1e-299 -> NaN Invalid_operation\r
+dqqua538 quantize 1.234 1e-299 -> NaN Invalid_operation\r
+dqqua539 quantize 123.456 1e-299 -> NaN Invalid_operation\r
+\r
+dqqua542 quantize 1.234E+299 1e299 -> 1E+299 Inexact Rounded\r
+dqqua543 quantize 1.234E+298 1e299 -> 0E+299 Inexact Rounded\r
+dqqua544 quantize 1.234 1e299 -> 0E+299 Inexact Rounded\r
+dqqua547 quantize 0 1e-299 -> 0E-299\r
-- next two are "won't fit" overflows\r
-dqqua538 quantize 1.234 1e-299 -> NaN Invalid_operation\r
-dqqua539 quantize 1.234 1e-300 -> NaN Invalid_operation\r
+dqqua548 quantize 1.234 1e-299 -> NaN Invalid_operation\r
+dqqua549 quantize 1.234 1e-300 -> NaN Invalid_operation\r
-- [more below]\r
\r
-- Specials\r
dqqua699 quantize NaN -sNaN88 -> -NaN88 Invalid_operation\r
\r
-- subnormals and underflow\r
-dqqua710 quantize 1.00E-6143 1e-6143 -> 1E-6143 Rounded\r
+dqqua710 quantize 1.00E-6143 1e-6143 -> 1E-6143 Rounded\r
dqqua711 quantize 0.1E-6143 2e-6144 -> 1E-6144 Subnormal\r
dqqua712 quantize 0.10E-6143 3e-6144 -> 1E-6144 Subnormal Rounded\r
dqqua713 quantize 0.100E-6143 4e-6144 -> 1E-6144 Subnormal Rounded\r
dqqua714 quantize 0.01E-6143 5e-6145 -> 1E-6145 Subnormal\r
-- next is rounded to Emin\r
-dqqua715 quantize 0.999E-6143 1e-6143 -> 1E-6143 Inexact Rounded\r
+dqqua715 quantize 0.999E-6143 1e-6143 -> 1E-6143 Inexact Rounded\r
dqqua716 quantize 0.099E-6143 10e-6144 -> 1E-6144 Inexact Rounded Subnormal\r
\r
dqqua717 quantize 0.009E-6143 1e-6145 -> 1E-6145 Inexact Rounded Subnormal\r
dqqua769 quantize -0.0001E-6143 1e-6146 -> -0E-6146 Inexact Rounded\r
\r
-- More from Fung Lee\r
-dqqua1021 quantize 8.666666666666000E+6144 1.000000000000000E+6144 -> 8.666666666666000000000000000000000E+6144 Clamped\r
-dqqua1022 quantize -8.666666666666000E+6144 1.000000000000000E+6144 -> -8.666666666666000000000000000000000E+6144 Clamped\r
-dqqua1027 quantize 8.666666666666000E+323 1E+31 -> NaN Invalid_operation\r
-dqqua1030 quantize 8.66666666E+3 1E+3 -> 9E+3 Inexact Rounded\r
+-- the next four would appear to be in error, but they are misleading (the\r
+-- operands will be clamped to a lower exponent) and so are omitted\r
+-- dqqua1021 quantize 8.666666666666000E+6144 1.000000000000000E+6144 -> 8.666666666666000000000000000000000E+6144 Clamped\r
+-- dqqua1022 quantize -8.666666666666000E+6144 1.000000000000000E+6144 -> -8.666666666666000000000000000000000E+6144 Clamped\r
+-- dqqua1027 quantize 8.666666666666000E+323 1E+31 -> NaN Invalid_operation\r
+-- dqqua1030 quantize 8.66666666E+3 1E+3 -> 9E+3 Inexact Rounded\r
\r
-- Int and uInt32 edge values for testing conversions\r
dqqua1040 quantize -2147483646 0 -> -2147483646\r
------------------------------------------------------------------------\r
-- dqReduce.decTest -- remove trailing zeros from a decQuad --\r
--- Copyright (c) IBM Corporation, 2003, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2003, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
clamp: 1\r
------------------------------------------------------------------------\r
-- dqRemainder.decTest -- decQuad remainder --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
clamp: 1\r
------------------------------------------------------------------------\r
-- dqRemainderNear.decTest -- decQuad remainder-near --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
clamp: 1\r
------------------------------------------------------------------------\r
-- dqRotate.decTest -- rotate decQuad coefficient left or right --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
clamp: 1\r
------------------------------------------------------------------------\r
-- dqSameQuantum.decTest -- check decQuad quantums match --\r
--- Copyright (c) IBM Corporation, 2001, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2001, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- All operands and results are decQuads.\r
extended: 1\r
------------------------------------------------------------------------\r
-- dqScalebB.decTest -- scale a decQuad by powers of 10 --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
clamp: 1\r
------------------------------------------------------------------------\r
-- dqShift.decTest -- shift decQuad coefficient left or right --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
clamp: 1\r
------------------------------------------------------------------------\r
-- dqSubtract.decTest -- decQuad subtraction --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This set of tests are for decQuads only; all arguments are\r
-- representable in a decQuad\r
------------------------------------------------------------------------\r
-- dqToIntegral.decTest -- round Quad to integral value --\r
--- Copyright (c) IBM Corporation, 2001, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2001, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This set of tests tests the extended specification 'round-to-integral\r
-- value-exact' operations (from IEEE 854, later modified in 754r).\r
------------------------------------------------------------------------\r
-- dqXor.decTest -- digitwise logical XOR for decQuads --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
clamp: 1\r
------------------------------------------------------------------------\r
-- dsBase.decTest -- base decSingle <--> string conversions --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This file tests base conversions from string to a decimal number\r
-- and back to a string (in Scientific form)\r
------------------------------------------------------------------------\r
-- dsEncode.decTest -- decimal four-byte format testcases --\r
--- Copyright (c) IBM Corporation, 2000, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2000, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-- [Previously called decimal32.decTest]\r
-version: 2.57\r
+version: 2.58\r
\r
-- This set of tests is for the four-byte concrete representation.\r
-- Its characteristics are:\r
------------------------------------------------------------------------\r
-- exp.decTest -- decimal natural exponentiation --\r
--- Copyright (c) IBM Corporation, 2005, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2005, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- Tests of the exponential funtion. Currently all testcases here\r
-- show results which are correctly rounded (within <= 0.5 ulp).\r
------------------------------------------------------------------------\r
-- fma.decTest -- decimal fused multiply add --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 9\r
------------------------------------------------------------------------
-- inexact.decTest -- decimal inexact and rounded edge cases --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
extended: 1
precision: 9
------------------------------------------------------------------------\r
-- invert.decTest -- digitwise logical INVERT --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 9\r
------------------------------------------------------------------------\r
-- ln.decTest -- decimal natural logarithm --\r
--- Copyright (c) IBM Corporation, 2005, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2005, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 16\r
------------------------------------------------------------------------\r
-- log10.decTest -- decimal logarithm in base 10 --\r
--- Copyright (c) IBM Corporation, 2005, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2005, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This emphasises the testing of notable cases, as they will often\r
-- have unusual paths (especially the 10**n results).\r
------------------------------------------------------------------------\r
-- logb.decTest -- return integral adjusted exponent as per 754r --\r
--- Copyright (c) IBM Corporation, 2005, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2005, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This emphasises the testing of notable cases, as they will often\r
-- have unusual paths (especially the 10**n results).\r
------------------------------------------------------------------------
-- max.decTest -- decimal maximum --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding
------------------------------------------------------------------------\r
-- maxmag.decTest -- decimal maximum by magnitude --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- we assume that base comparison is tested in compare.decTest, so\r
-- these mainly cover special cases and rounding\r
------------------------------------------------------------------------
-- min.decTest -- decimal minimum --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding
------------------------------------------------------------------------\r
-- minmag.decTest -- decimal minimum by magnitude --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- we assume that base comparison is tested in compare.decTest, so\r
-- these mainly cover special cases and rounding\r
------------------------------------------------------------------------
-- minus.decTest -- decimal negation --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- This set of tests primarily tests the existence of the operator.
-- Subtraction, rounding, and more overflows are tested elsewhere.
------------------------------------------------------------------------
-- multiply.decTest -- decimal multiplication --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
extended: 1
precision: 9
------------------------------------------------------------------------\r
-- nextminus.decTest -- decimal next that is less [754r nextdown] --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 9\r
------------------------------------------------------------------------\r
-- nextplus.decTest -- decimal next that is greater [754r nextup] --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 9\r
------------------------------------------------------------------------\r
-- nexttoward.decTest -- decimal next toward rhs [754r nextafter] --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 9\r
------------------------------------------------------------------------\r
-- or.decTest -- digitwise logical OR --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 9\r
------------------------------------------------------------------------
-- plus.decTest -- decimal monadic addition --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- This set of tests primarily tests the existence of the operator.
-- Addition and rounding, and most overflows, are tested elsewhere.
------------------------------------------------------------------------
-- power.decTest -- decimal exponentiation [power(x, y)] --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- In addition to the power operator testcases here, see also the file
-- powersqrt.decTest which includes all the tests from
------------------------------------------------------------------------\r
-- powersqrt.decTest -- decimal square root, using power --\r
--- Copyright (c) IBM Corporation, 2004, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2004, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- These testcases are taken from squareroot.decTest but are\r
-- evaluated using the power operator. The differences in results\r
------------------------------------------------------------------------
-- quantize.decTest -- decimal quantize operation --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- Most of the tests here assume a "regular pattern", where the
-- sign and coefficient are +1.
------------------------------------------------------------------------
-- randomBound32.decTest -- decimal testcases -- boundaries near 32 --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- These testcases test calculations at precisions 31, 32, and 33, to
-- exercise the boundaries around 2**5
------------------------------------------------------------------------
-- randoms.decTest -- decimal random testcases --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
extended: 1
maxexponent: 999999999
------------------------------------------------------------------------
-- reduce.decTest -- remove trailing zeros --
--- Copyright (c) IBM Corporation, 2003, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 2003, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
------------------------------------------------------------------------
-- [This used to be called normalize.]
-version: 2.57
+version: 2.58
extended: 1
precision: 9
------------------------------------------------------------------------
-- remainder.decTest -- decimal remainder --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
extended: 1
precision: 9
------------------------------------------------------------------------
-- remainderNear.decTest -- decimal remainder-near (IEEE remainder) --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
extended: 1
precision: 9
------------------------------------------------------------------------
-- rescale.decTest -- decimal rescale operation --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- [obsolete] Quantize.decTest has the improved version
------------------------------------------------------------------------\r
-- rotate.decTest -- rotate coefficient left or right --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 9\r
------------------------------------------------------------------------
-- rounding.decTest -- decimal rounding modes testcases --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- These tests require that implementations take account of residues in
-- order to get correct results for some rounding modes. Rather than
------------------------------------------------------------------------
-- samequantum.decTest -- check quantums match --
--- Copyright (c) IBM Corporation, 2001, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 2001, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
extended: 1
precision: 9
------------------------------------------------------------------------\r
-- scaleb.decTest -- scale a number by powers of 10 --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 9\r
------------------------------------------------------------------------\r
-- shift.decTest -- shift coefficient left or right --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 9\r
------------------------------------------------------------------------
-- squareroot.decTest -- decimal square root --
--- Copyright (c) IBM Corporation, 2003, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 2003, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
extended: 1
precision: 9
precision: 1
sqtx8626 squareroot 1E+18 -> 1E+9
sqtx8627 squareroot 1E+19 -> 3E+9 Inexact Rounded
+-- in this next one, intermediate result is 9486832980.505137996...
+-- so rounds down to 9 (not up to 10 which would cause Infinity overflow)
sqtx8628 squareroot 9E+19 -> 9E+9 Inexact Rounded
sqtx8629 squareroot 9.1E+19 -> Infinity Overflow Inexact Rounded
sqtx8630 squareroot 1E+20 -> Infinity Overflow Inexact Rounded
precision: 1
sqtx9006 squareroot 11025 -> 1E+2 Inexact Rounded
+-- an interesting case
+precision: 7
+sqtx9007 squareroot 1600000e1 -> 4000
+
-- Out-of-bounds zeros
precision: 4
sqtx9010 squareroot 0E-9 -> 0.00000
sqtx9039 squareroot 0E+21 -> 0E+9 Clamped
sqtx9040 squareroot 0E+22 -> 0E+9 Clamped
+-- if digits > emax maximum real exponent is negative
+maxexponent: 9
+minexponent: -9
+precision: 15
+clamp: 1
+sqtx9045 squareroot 1 -> 1.00000 Clamped
+
+-- High-precision exact and inexact
+maxexponent: 999
+minexponent: -999
+precision: 400
+sqtx9050 squareroot 2 -> 1.414213562373095048801688724209698078569671875376948073176679737990732478462107038850387534327641572735013846230912297024924836055850737212644121497099935831413222665927505592755799950501152782060571470109559971605970274534596862014728517418640889198609552329230484308714321450839762603627995251407989687253396546331808829640620615258352395054745750287759961729835575220337531857011354374603408498847 Inexact Rounded
+sqtx9051 squareroot 1089 -> 33
+sqtx9052 squareroot 10.89 -> 3.3
-- Null test
sqtx9900 squareroot # -> NaN Invalid_operation
------------------------------------------------------------------------
-- subtract.decTest -- decimal subtraction --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
extended: 1
precision: 9
------------------------------------------------------------------------
-- testall.decTest -- run all general decimal arithmetic testcases --
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- core tests (using Extended: 1) --------------------------------------
dectest: base
------------------------------------------------------------------------
-- tointegral.decTest -- round decimal to integral value --
--- Copyright (c) IBM Corporation, 2001, 2007. All rights reserved. --
+-- Copyright (c) IBM Corporation, 2001, 2008. All rights reserved. --
------------------------------------------------------------------------
-- Please see the document "General Decimal Arithmetic Testcases" --
-- at http://www2.hursley.ibm.com/decimal for the description of --
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com --
------------------------------------------------------------------------
-version: 2.57
+version: 2.58
-- This set of tests tests the extended specification 'round-to-integral
-- value' operation (from IEEE 854, later modified in 754r).
------------------------------------------------------------------------\r
-- tointegralx.decTest -- round decimal to integral value, exact --\r
--- Copyright (c) IBM Corporation, 2001, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 2001, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
-- This set of tests tests the extended specification 'round-to-integral\r
-- value' operation (from IEEE 854, later modified in 754r).\r
------------------------------------------------------------------------\r
-- xor.decTest -- digitwise logical XOR --\r
--- Copyright (c) IBM Corporation, 1981, 2007. All rights reserved. --\r
+-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --\r
------------------------------------------------------------------------\r
-- Please see the document "General Decimal Arithmetic Testcases" --\r
-- at http://www2.hursley.ibm.com/decimal for the description of --\r
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --\r
-- mfc@uk.ibm.com --\r
------------------------------------------------------------------------\r
-version: 2.57\r
+version: 2.58\r
\r
extended: 1\r
precision: 9\r