Test cases from Cowlishaw, v2.57. All are pased cleanly.

This commit is contained in:
Facundo Batista 2007-11-23 18:14:50 +00:00
parent 72bc54faed
commit 9401cbe0e9
142 changed files with 510 additions and 160 deletions

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- This set of tests primarily tests the existence of the operator. -- This set of tests primarily tests the existence of the operator.
-- Additon, subtraction, rounding, and more overflows are tested -- Additon, subtraction, rounding, and more overflows are tested

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 9 precision: 9
rounding: half_up rounding: half_up
@ -1122,6 +1122,15 @@ addx1116 add -1e-3 +1e-383 -> -0.0009999999999999999 Rounded Inexact
addx1117 add -1e-4 +1e-383 -> -0.00009999999999999999 Rounded Inexact addx1117 add -1e-4 +1e-383 -> -0.00009999999999999999 Rounded Inexact
addx1118 add -1e-5 +1e-383 -> -0.000009999999999999999 Rounded Inexact addx1118 add -1e-5 +1e-383 -> -0.000009999999999999999 Rounded Inexact
addx1119 add -1e-6 +1e-383 -> -9.999999999999999E-7 Rounded Inexact addx1119 add -1e-6 +1e-383 -> -9.999999999999999E-7 Rounded Inexact
addx1120 add +1e-383 -1e+2 -> -99.99999999999999 Rounded Inexact
addx1121 add +1e-383 -1e+1 -> -9.999999999999999 Rounded Inexact
addx1123 add +1e-383 -1 -> -0.9999999999999999 Rounded Inexact
addx1124 add +1e-383 -1e-1 -> -0.09999999999999999 Rounded Inexact
addx1125 add +1e-383 -1e-2 -> -0.009999999999999999 Rounded Inexact
addx1126 add +1e-383 -1e-3 -> -0.0009999999999999999 Rounded Inexact
addx1127 add +1e-383 -1e-4 -> -0.00009999999999999999 Rounded Inexact
addx1128 add +1e-383 -1e-5 -> -0.000009999999999999999 Rounded Inexact
addx1129 add +1e-383 -1e-6 -> -9.999999999999999E-7 Rounded Inexact
rounding: down rounding: down
precision: 7 precision: 7
@ -1658,17 +1667,19 @@ addx6056 add '1.3' '-2.07' -> '-0.77'
addx6057 add '1E+2' '1E+4' -> '1.01E+4' addx6057 add '1E+2' '1E+4' -> '1.01E+4'
-- from above -- from above
addx6061 add 1 '0.1' -> '1.1' addx6060 add 1 '0.1' -> '1.1'
addx6062 add 1 '0.01' -> '1.01' addx6061 add 1 '0.01' -> '1.01'
addx6063 add 1 '0.001' -> '1.001' addx6062 add 1 '0.001' -> '1.001'
addx6064 add 1 '0.0001' -> '1.0001' addx6063 add 1 '0.0001' -> '1.0001'
addx6065 add 1 '0.00001' -> '1.00001' addx6064 add 1 '0.00001' -> '1.00001'
addx6066 add 1 '0.000001' -> '1.000001' addx6065 add 1 '0.000001' -> '1.000001'
addx6067 add 1 '0.0000001' -> '1.0000001' addx6066 add 1 '0.0000001' -> '1.0000001'
addx6068 add 1 '0.00000001' -> '1.00000001' addx6067 add 1 '0.00000001' -> '1.00000001'
-- cancellation to integer -- cancellation to integer
addx6069 add 99999999999999123456789 -99999999999999E+9 -> 123456789 addx6068 add 99999999999999123456789 -99999999999999E+9 -> 123456789
-- similar from FMA fun
addx6069 add "-1234567890123455.234567890123454" "1234567890123456" -> 0.765432109876546
-- some funny zeros [in case of bad signum] -- some funny zeros [in case of bad signum]
addx6070 add 1 0 -> 1 addx6070 add 1 0 -> 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
precision: 9 precision: 9

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
-- This file tests base conversions from string to a decimal number -- This file tests base conversions from string to a decimal number

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- This set of tests uses the same limits as the 8-byte concrete -- This set of tests uses the same limits as the 8-byte concrete
-- representation, but applies clamping without using format-specific -- representation, but applies clamping without using format-specific

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- [New 2006.11.27] -- [New 2006.11.27]

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately, -- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot -- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately, -- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot -- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- Note that it cannot be assumed that add/subtract tests cover paths -- Note that it cannot be assumed that add/subtract tests cover paths
-- for this operation adequately, here, because the code might be -- for this operation adequately, here, because the code might be

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
precision: 9 precision: 9

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
precision: 9 precision: 9

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
precision: 9 precision: 9

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
precision: 9 precision: 9

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 16 precision: 16
maxExponent: 384 maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- This set of tests are for decDoubles only; all arguments are -- This set of tests are for decDoubles only; all arguments are
-- representable in a decDouble -- representable in a decDouble
@ -1029,6 +1029,16 @@ ddadd71706 add 130E-2 -12E-1 -> 0.10
ddadd71707 add 130E-2 -1E0 -> 0.30 ddadd71707 add 130E-2 -1E0 -> 0.30
ddadd71708 add 1E2 -1E4 -> -9.9E+3 ddadd71708 add 1E2 -1E4 -> -9.9E+3
-- query from Vincent Kulandaisamy
rounding: ceiling
ddadd71801 add 7.8822773805862E+277 -5.1757503820663E-21 -> 7.882277380586200E+277 Inexact Rounded
ddadd71802 add 7.882277380586200E+277 12.341 -> 7.882277380586201E+277 Inexact Rounded
ddadd71803 add 7.882277380586201E+277 2.7270545046613E-31 -> 7.882277380586202E+277 Inexact Rounded
ddadd71811 add 12.341 -5.1757503820663E-21 -> 12.34100000000000 Inexact Rounded
ddadd71812 add 12.34100000000000 2.7270545046613E-31 -> 12.34100000000001 Inexact Rounded
ddadd71813 add 12.34100000000001 7.8822773805862E+277 -> 7.882277380586201E+277 Inexact Rounded
-- Gappy coefficients; check residue handling even with full coefficient gap -- Gappy coefficients; check residue handling even with full coefficient gap
rounding: half_even rounding: half_even

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 16 precision: 16
maxExponent: 384 maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- This file tests base conversions from string to a decimal number -- This file tests base conversions from string to a decimal number
-- and back to a string (in Scientific form) -- and back to a string (in Scientific form)

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- This file tests that copy operations leave uncanonical operands -- This file tests that copy operations leave uncanonical operands
-- unchanged, and vice versa -- unchanged, and vice versa

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- [New 2006.11.27] -- [New 2006.11.27]
precision: 16 precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately, -- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot -- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately, -- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot -- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately, -- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot -- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately, -- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot -- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decDoubles. -- All operands and results are decDoubles.
precision: 16 precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decDoubles. -- All operands and results are decDoubles.
precision: 16 precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decDoubles. -- All operands and results are decDoubles.
precision: 16 precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decDoubles. -- All operands and results are decDoubles.
precision: 16 precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 16 precision: 16
maxExponent: 384 maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 16 precision: 16
maxExponent: 384 maxExponent: 384

View File

@ -18,7 +18,7 @@
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
-- [Previously called decimal64.decTest] -- [Previously called decimal64.decTest]
version: 2.56 version: 2.57
-- This set of tests is for the eight-byte concrete representation. -- This set of tests is for the eight-byte concrete representation.
-- Its characteristics are: -- Its characteristics are:
@ -485,3 +485,6 @@ decd828 apply #2238000115afb55a -> 4294967294
decd829 apply #2238000115afb55b -> 4294967295 decd829 apply #2238000115afb55b -> 4294967295
decd830 apply #2238000115afb57a -> 4294967296 decd830 apply #2238000115afb57a -> 4294967296
decd831 apply #2238000115afb57b -> 4294967297 decd831 apply #2238000115afb57b -> 4294967297
-- for narrowing
decd840 apply #2870000000000000 -> 2.000000000000000E-99

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 16 precision: 16
maxExponent: 384 maxExponent: 384
@ -1663,6 +1663,34 @@ ddfma375087 fma 1 12345678 1E-33 -> 12345678.00000001 Inexac
ddfma375088 fma 1 12345678 1E-34 -> 12345678.00000001 Inexact Rounded ddfma375088 fma 1 12345678 1E-34 -> 12345678.00000001 Inexact Rounded
ddfma375089 fma 1 12345678 1E-35 -> 12345678.00000001 Inexact Rounded ddfma375089 fma 1 12345678 1E-35 -> 12345678.00000001 Inexact Rounded
-- desctructive subtraction (from remainder tests)
-- +++ some of these will be off-by-one remainder vs remainderNear
ddfma4000 fma -1234567890123454 1.000000000000001 1234567890123456 -> 0.765432109876546
ddfma4001 fma -1234567890123443 1.00000000000001 1234567890123456 -> 0.65432109876557
ddfma4002 fma -1234567890123332 1.0000000000001 1234567890123456 -> 0.5432109876668
ddfma4003 fma -308641972530863 4.000000000000001 1234567890123455 -> 2.691358027469137
ddfma4004 fma -308641972530863 4.000000000000001 1234567890123456 -> 3.691358027469137
ddfma4005 fma -246913578024696 4.9999999999999 1234567890123456 -> 0.6913578024696
ddfma4006 fma -246913578024691 4.99999999999999 1234567890123456 -> 3.46913578024691
ddfma4007 fma -246913578024691 4.999999999999999 1234567890123456 -> 1.246913578024691
ddfma4008 fma -246913578024691 5.000000000000001 1234567890123456 -> 0.753086421975309
ddfma4009 fma -246913578024690 5.00000000000001 1234567890123456 -> 3.53086421975310
ddfma4010 fma -246913578024686 5.0000000000001 1234567890123456 -> 1.3086421975314
ddfma4011 fma -1234567890123455 1.000000000000001 1234567890123456 -> -0.234567890123455
ddfma4012 fma -1234567890123444 1.00000000000001 1234567890123456 -> -0.34567890123444
ddfma4013 fma -1234567890123333 1.0000000000001 1234567890123456 -> -0.4567890123333
ddfma4014 fma -308641972530864 4.000000000000001 1234567890123455 -> -1.308641972530864
ddfma4015 fma -308641972530864 4.000000000000001 1234567890123456 -> -0.308641972530864
ddfma4016 fma -246913578024696 4.9999999999999 1234567890123456 -> 0.6913578024696
ddfma4017 fma -246913578024692 4.99999999999999 1234567890123456 -> -1.53086421975308
ddfma4018 fma -246913578024691 4.999999999999999 1234567890123456 -> 1.246913578024691
ddfma4019 fma -246913578024691 5.000000000000001 1234567890123456 -> 0.753086421975309
ddfma4020 fma -246913578024691 5.00000000000001 1234567890123456 -> -1.46913578024691
ddfma4021 fma -246913578024686 5.0000000000001 1234567890123456 -> 1.3086421975314
-- Null tests -- Null tests
ddfma39990 fma 1 10 # -> NaN Invalid_operation ddfma39990 fma 1 10 # -> NaN Invalid_operation
ddfma39991 fma 1 # 10 -> NaN Invalid_operation ddfma39991 fma 1 # 10 -> NaN Invalid_operation

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 16 precision: 16
maxExponent: 384 maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 16 precision: 16
maxExponent: 384 maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- we assume that base comparison is tested in compare.decTest, so -- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding -- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- we assume that base comparison is tested in compare.decTest, so -- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding -- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- we assume that base comparison is tested in compare.decTest, so -- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding -- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- we assume that base comparison is tested in compare.decTest, so -- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding -- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decDoubles. -- All operands and results are decDoubles.
precision: 16 precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- This set of tests are for decDoubles only; all arguments are -- This set of tests are for decDoubles only; all arguments are
-- representable in a decDouble -- representable in a decDouble
@ -454,9 +454,92 @@ ddmul908 multiply 9.999999999999999E-383 0.09999999999999999 -> 1.00000000
-- hugest -- hugest
ddmul909 multiply 9999999999999999 9999999999999999 -> 9.999999999999998E+31 Inexact Rounded ddmul909 multiply 9999999999999999 9999999999999999 -> 9.999999999999998E+31 Inexact Rounded
-- power-of-ten edge cases
ddmul1001 multiply 1 10 -> 10
ddmul1002 multiply 1 100 -> 100
ddmul1003 multiply 1 1000 -> 1000
ddmul1004 multiply 1 10000 -> 10000
ddmul1005 multiply 1 100000 -> 100000
ddmul1006 multiply 1 1000000 -> 1000000
ddmul1007 multiply 1 10000000 -> 10000000
ddmul1008 multiply 1 100000000 -> 100000000
ddmul1009 multiply 1 1000000000 -> 1000000000
ddmul1010 multiply 1 10000000000 -> 10000000000
ddmul1011 multiply 1 100000000000 -> 100000000000
ddmul1012 multiply 1 1000000000000 -> 1000000000000
ddmul1013 multiply 1 10000000000000 -> 10000000000000
ddmul1014 multiply 1 100000000000000 -> 100000000000000
ddmul1015 multiply 1 1000000000000000 -> 1000000000000000
ddmul1021 multiply 10 1 -> 10
ddmul1022 multiply 10 10 -> 100
ddmul1023 multiply 10 100 -> 1000
ddmul1024 multiply 10 1000 -> 10000
ddmul1025 multiply 10 10000 -> 100000
ddmul1026 multiply 10 100000 -> 1000000
ddmul1027 multiply 10 1000000 -> 10000000
ddmul1028 multiply 10 10000000 -> 100000000
ddmul1029 multiply 10 100000000 -> 1000000000
ddmul1030 multiply 10 1000000000 -> 10000000000
ddmul1031 multiply 10 10000000000 -> 100000000000
ddmul1032 multiply 10 100000000000 -> 1000000000000
ddmul1033 multiply 10 1000000000000 -> 10000000000000
ddmul1034 multiply 10 10000000000000 -> 100000000000000
ddmul1035 multiply 10 100000000000000 -> 1000000000000000
ddmul1041 multiply 100 0.1 -> 10.0
ddmul1042 multiply 100 1 -> 100
ddmul1043 multiply 100 10 -> 1000
ddmul1044 multiply 100 100 -> 10000
ddmul1045 multiply 100 1000 -> 100000
ddmul1046 multiply 100 10000 -> 1000000
ddmul1047 multiply 100 100000 -> 10000000
ddmul1048 multiply 100 1000000 -> 100000000
ddmul1049 multiply 100 10000000 -> 1000000000
ddmul1050 multiply 100 100000000 -> 10000000000
ddmul1051 multiply 100 1000000000 -> 100000000000
ddmul1052 multiply 100 10000000000 -> 1000000000000
ddmul1053 multiply 100 100000000000 -> 10000000000000
ddmul1054 multiply 100 1000000000000 -> 100000000000000
ddmul1055 multiply 100 10000000000000 -> 1000000000000000
ddmul1061 multiply 1000 0.01 -> 10.00
ddmul1062 multiply 1000 0.1 -> 100.0
ddmul1063 multiply 1000 1 -> 1000
ddmul1064 multiply 1000 10 -> 10000
ddmul1065 multiply 1000 100 -> 100000
ddmul1066 multiply 1000 1000 -> 1000000
ddmul1067 multiply 1000 10000 -> 10000000
ddmul1068 multiply 1000 100000 -> 100000000
ddmul1069 multiply 1000 1000000 -> 1000000000
ddmul1070 multiply 1000 10000000 -> 10000000000
ddmul1071 multiply 1000 100000000 -> 100000000000
ddmul1072 multiply 1000 1000000000 -> 1000000000000
ddmul1073 multiply 1000 10000000000 -> 10000000000000
ddmul1074 multiply 1000 100000000000 -> 100000000000000
ddmul1075 multiply 1000 1000000000000 -> 1000000000000000
ddmul1081 multiply 10000 0.001 -> 10.000
ddmul1082 multiply 10000 0.01 -> 100.00
ddmul1083 multiply 10000 0.1 -> 1000.0
ddmul1084 multiply 10000 1 -> 10000
ddmul1085 multiply 10000 10 -> 100000
ddmul1086 multiply 10000 100 -> 1000000
ddmul1087 multiply 10000 1000 -> 10000000
ddmul1088 multiply 10000 10000 -> 100000000
ddmul1089 multiply 10000 100000 -> 1000000000
ddmul1090 multiply 10000 1000000 -> 10000000000
ddmul1091 multiply 10000 10000000 -> 100000000000
ddmul1092 multiply 10000 100000000 -> 1000000000000
ddmul1093 multiply 10000 1000000000 -> 10000000000000
ddmul1094 multiply 10000 10000000000 -> 100000000000000
ddmul1095 multiply 10000 100000000000 -> 1000000000000000
ddmul1097 multiply 10000 99999999999 -> 999999999990000
ddmul1098 multiply 10000 99999999999 -> 999999999990000
-- Null tests -- Null tests
ddmul990 multiply 10 # -> NaN Invalid_operation ddmul9990 multiply 10 # -> NaN Invalid_operation
ddmul991 multiply # 10 -> NaN Invalid_operation ddmul9991 multiply # 10 -> NaN Invalid_operation

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decDoubles. -- All operands and results are decDoubles.
precision: 16 precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decDoubles. -- All operands and results are decDoubles.
precision: 16 precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decDoubles. -- All operands and results are decDoubles.
precision: 16 precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 16 precision: 16
maxExponent: 384 maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decDoubles. -- All operands and results are decDoubles.
precision: 16 precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- Most of the tests here assume a "regular pattern", where the -- Most of the tests here assume a "regular pattern", where the
-- sign and coefficient are +1. -- sign and coefficient are +1.

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 16 precision: 16
maxExponent: 384 maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 16 precision: 16
maxExponent: 384 maxExponent: 384
@ -581,6 +581,19 @@ ddrem1056 remainder 1e-277 -1e+311 -> 1E-277
ddrem1057 remainder -1e-277 1e+311 -> -1E-277 ddrem1057 remainder -1e-277 1e+311 -> -1E-277
ddrem1058 remainder -1e-277 -1e+311 -> -1E-277 ddrem1058 remainder -1e-277 -1e+311 -> -1E-277
-- destructive subtract
ddrem1101 remainder 1234567890123456 1.000000000000001 -> 0.765432109876546
ddrem1102 remainder 1234567890123456 1.00000000000001 -> 0.65432109876557
ddrem1103 remainder 1234567890123456 1.0000000000001 -> 0.5432109876668
ddrem1104 remainder 1234567890123455 4.000000000000001 -> 2.691358027469137
ddrem1105 remainder 1234567890123456 4.000000000000001 -> 3.691358027469137
ddrem1106 remainder 1234567890123456 4.9999999999999 -> 0.6913578024696
ddrem1107 remainder 1234567890123456 4.99999999999999 -> 3.46913578024691
ddrem1108 remainder 1234567890123456 4.999999999999999 -> 1.246913578024691
ddrem1109 remainder 1234567890123456 5.000000000000001 -> 0.753086421975309
ddrem1110 remainder 1234567890123456 5.00000000000001 -> 3.53086421975310
ddrem1111 remainder 1234567890123456 5.0000000000001 -> 1.3086421975314
-- Null tests -- Null tests
ddrem1000 remainder 10 # -> NaN Invalid_operation ddrem1000 remainder 10 # -> NaN Invalid_operation
ddrem1001 remainder # 10 -> NaN Invalid_operation ddrem1001 remainder # 10 -> NaN Invalid_operation

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 16 precision: 16
maxExponent: 384 maxExponent: 384
@ -599,6 +599,7 @@ ddrmn969 remaindernear 123e1 9876543210987654 -> 1230
ddrmn980 remaindernear 123e1 1000E299 -> 1.23E+3 -- 123E+1 internally ddrmn980 remaindernear 123e1 1000E299 -> 1.23E+3 -- 123E+1 internally
-- overflow and underflow tests [from divide] -- overflow and underflow tests [from divide]
ddrmn1051 remaindernear 1e+277 1e-311 -> NaN Division_impossible ddrmn1051 remaindernear 1e+277 1e-311 -> NaN Division_impossible
ddrmn1052 remaindernear 1e+277 -1e-311 -> NaN Division_impossible ddrmn1052 remaindernear 1e+277 -1e-311 -> NaN Division_impossible
@ -609,6 +610,19 @@ ddrmn1056 remaindernear 1e-277 -1e+311 -> 1E-277
ddrmn1057 remaindernear -1e-277 1e+311 -> -1E-277 ddrmn1057 remaindernear -1e-277 1e+311 -> -1E-277
ddrmn1058 remaindernear -1e-277 -1e+311 -> -1E-277 ddrmn1058 remaindernear -1e-277 -1e+311 -> -1E-277
-- destructive subtract
ddrmn1100 remainderNear 1234567890123456 1.000000000000001 -> -0.234567890123455
ddrmn1101 remainderNear 1234567890123456 1.00000000000001 -> -0.34567890123444
ddrmn1102 remainderNear 1234567890123456 1.0000000000001 -> -0.4567890123333
ddrmn1103 remainderNear 1234567890123455 4.000000000000001 -> -1.308641972530864
ddrmn1104 remainderNear 1234567890123456 4.000000000000001 -> -0.308641972530864
ddrmn1115 remainderNear 1234567890123456 4.9999999999999 -> 0.6913578024696
ddrmn1116 remainderNear 1234567890123456 4.99999999999999 -> -1.53086421975308
ddrmn1117 remainderNear 1234567890123456 4.999999999999999 -> 1.246913578024691
ddrmn1118 remainderNear 1234567890123456 5.000000000000001 -> 0.753086421975309
ddrmn1119 remainderNear 1234567890123456 5.00000000000001 -> -1.46913578024691
ddrmn1110 remainderNear 1234567890123456 5.0000000000001 -> 1.3086421975314
-- Null tests -- Null tests
ddrmn1000 remaindernear 10 # -> NaN Invalid_operation ddrmn1000 remaindernear 10 # -> NaN Invalid_operation
ddrmn1001 remaindernear # 10 -> NaN Invalid_operation ddrmn1001 remaindernear # 10 -> NaN Invalid_operation

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 16 precision: 16
maxExponent: 384 maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decDoubles. -- All operands and results are decDoubles.
precision: 16 precision: 16

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 16 precision: 16
maxExponent: 384 maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 16 precision: 16
maxExponent: 384 maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- This set of tests are for decDoubles only; all arguments are -- This set of tests are for decDoubles only; all arguments are
-- representable in a decDouble -- representable in a decDouble

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- This set of tests tests the extended specification 'round-to-integral -- This set of tests tests the extended specification 'round-to-integral
-- value-exact' operations (from IEEE 854, later modified in 754r). -- value-exact' operations (from IEEE 854, later modified in 754r).

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
precision: 16 precision: 16
maxExponent: 384 maxExponent: 384

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- decDouble tests -- decDouble tests
dectest: ddAbs dectest: ddAbs

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- decQuad tests -- decQuad tests
dectest: dqAbs dectest: dqAbs

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- decSingle tests -- decSingle tests
dectest: dsBase dectest: dsBase

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
precision: 9 precision: 9

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
precision: 9 precision: 9

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
clamp: 1 clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- This set of tests are for decQuads only; all arguments are -- This set of tests are for decQuads only; all arguments are
-- representable in a decQuad -- representable in a decQuad

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
clamp: 1 clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- This file tests base conversions from string to a decimal number -- This file tests base conversions from string to a decimal number
-- and back to a string (in Scientific form) -- and back to a string (in Scientific form)

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- This file tests that copy operations leave uncanonical operands -- This file tests that copy operations leave uncanonical operands
-- unchanged, and vice versa -- unchanged, and vice versa

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- [New 2006.11.27] -- [New 2006.11.27]

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately, -- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot -- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately, -- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot -- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately, -- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot -- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- Note that we cannot assume add/subtract tests cover paths adequately, -- Note that we cannot assume add/subtract tests cover paths adequately,
-- here, because the code might be quite different (comparison cannot -- here, because the code might be quite different (comparison cannot

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decQuads. -- All operands and results are decQuads.
extended: 1 extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decQuads. -- All operands and results are decQuads.
extended: 1 extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decQuads. -- All operands and results are decQuads.
extended: 1 extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decQuads. -- All operands and results are decQuads.
extended: 1 extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
clamp: 1 clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
clamp: 1 clamp: 1

View File

@ -18,7 +18,7 @@
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
-- [Previously called decimal128.decTest] -- [Previously called decimal128.decTest]
version: 2.56 version: 2.57
-- This set of tests is for the sixteen-byte concrete representation. -- This set of tests is for the sixteen-byte concrete representation.
-- Its characteristics are: -- Its characteristics are:
@ -468,3 +468,10 @@ decq828 apply #22080000000000000000000115afb55a -> 4294967294
decq829 apply #22080000000000000000000115afb55b -> 4294967295 decq829 apply #22080000000000000000000115afb55b -> 4294967295
decq830 apply #22080000000000000000000115afb57a -> 4294967296 decq830 apply #22080000000000000000000115afb57a -> 4294967296
decq831 apply #22080000000000000000000115afb57b -> 4294967297 decq831 apply #22080000000000000000000115afb57b -> 4294967297
-- VG testcase
decq840 apply #2080000000000000F294000000172636 -> 8.81125000000001349436E-1548
decq841 apply #20800000000000008000000000000000 -> 8.000000000000000000E-1550
decq842 apply #1EF98490000000010F6E4E0000000000 -> 7.049000000000010795488000000000000E-3097
decq843 multiply #20800000000000008000000000000000 #2080000000000000F294000000172636 -> #1EF98490000000010F6E4E0000000000 Rounded

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
clamp: 1 clamp: 1
@ -1754,6 +1754,31 @@ dqadd375087 fma 1 12398765432112345678945678 1E-33 -> 123987
dqadd375088 fma 1 12398765432112345678945678 1E-34 -> 12398765432112345678945678.00000001 Inexact Rounded dqadd375088 fma 1 12398765432112345678945678 1E-34 -> 12398765432112345678945678.00000001 Inexact Rounded
dqadd375089 fma 1 12398765432112345678945678 1E-35 -> 12398765432112345678945678.00000001 Inexact Rounded dqadd375089 fma 1 12398765432112345678945678 1E-35 -> 12398765432112345678945678.00000001 Inexact Rounded
-- Destructive subtract (from remainder tests)
-- +++ some of these will be off-by-one remainder vs remainderNear
dqfma4000 fma -1234567890123456789012345678901233 1.000000000000000000000000000000001 1234567890123456789012345678901234 -> -0.234567890123456789012345678901233
dqfma4001 fma -1234567890123456789012345678901222 1.00000000000000000000000000000001 1234567890123456789012345678901234 -> -0.34567890123456789012345678901222
dqfma4002 fma -1234567890123456789012345678901111 1.0000000000000000000000000000001 1234567890123456789012345678901234 -> -0.4567890123456789012345678901111
dqfma4003 fma -308641972530864197253086419725314 4.000000000000000000000000000000001 1234567890123456789012345678901255 -> -1.308641972530864197253086419725314
dqfma4004 fma -308641972530864197253086419725308 4.000000000000000000000000000000001 1234567890123456789012345678901234 -> 1.691358027469135802746913580274692
dqfma4005 fma -246913578024691357802469135780252 4.9999999999999999999999999999999 1234567890123456789012345678901234 -> -1.3086421975308642197530864219748
dqfma4006 fma -246913578024691357802469135780247 4.99999999999999999999999999999999 1234567890123456789012345678901234 -> 1.46913578024691357802469135780247
dqfma4007 fma -246913578024691357802469135780247 4.999999999999999999999999999999999 1234567890123456789012345678901234 -> -0.753086421975308642197530864219753
dqfma4008 fma -246913578024691357802469135780247 5.000000000000000000000000000000001 1234567890123456789012345678901234 -> -1.246913578024691357802469135780247
dqfma4009 fma -246913578024691357802469135780246 5.00000000000000000000000000000001 1234567890123456789012345678901234 -> 1.53086421975308642197530864219754
dqfma4010 fma -246913578024691357802469135780242 5.0000000000000000000000000000001 1234567890123456789012345678901234 -> -0.6913578024691357802469135780242
dqfma4011 fma -1234567890123456789012345678901232 1.000000000000000000000000000000001 1234567890123456789012345678901234 -> 0.765432109876543210987654321098768
dqfma4012 fma -1234567890123456789012345678901221 1.00000000000000000000000000000001 1234567890123456789012345678901234 -> 0.65432109876543210987654321098779
dqfma4013 fma -1234567890123456789012345678901110 1.0000000000000000000000000000001 1234567890123456789012345678901234 -> 0.5432109876543210987654321098890
dqfma4014 fma -308641972530864197253086419725313 4.000000000000000000000000000000001 1234567890123456789012345678901255 -> 2.691358027469135802746913580274687
dqfma4015 fma -308641972530864197253086419725308 4.000000000000000000000000000000001 1234567890123456789012345678901234 -> 1.691358027469135802746913580274692
dqfma4016 fma -246913578024691357802469135780251 4.9999999999999999999999999999999 1234567890123456789012345678901234 -> 3.6913578024691357802469135780251
dqfma4017 fma -246913578024691357802469135780247 4.99999999999999999999999999999999 1234567890123456789012345678901234 -> 1.46913578024691357802469135780247
dqfma4018 fma -246913578024691357802469135780246 4.999999999999999999999999999999999 1234567890123456789012345678901234 -> 4.246913578024691357802469135780246
dqfma4019 fma -246913578024691357802469135780241 5.0000000000000000000000000000001 1234567890123456789012345678901234 -> 4.3086421975308642197530864219759
-- Null tests -- Null tests
dqadd39990 fma 1 10 # -> NaN Invalid_operation dqadd39990 fma 1 10 # -> NaN Invalid_operation
dqadd39991 fma 1 # 10 -> NaN Invalid_operation dqadd39991 fma 1 # 10 -> NaN Invalid_operation

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
clamp: 1 clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
clamp: 1 clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- we assume that base comparison is tested in compare.decTest, so -- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding -- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- we assume that base comparison is tested in compare.decTest, so -- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding -- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- we assume that base comparison is tested in compare.decTest, so -- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding -- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- we assume that base comparison is tested in compare.decTest, so -- we assume that base comparison is tested in compare.decTest, so
-- these mainly cover special cases and rounding -- these mainly cover special cases and rounding

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decQuads. -- All operands and results are decQuads.
extended: 1 extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- This set of tests are for decQuads only; all arguments are -- This set of tests are for decQuads only; all arguments are
-- representable in a decQuad -- representable in a decQuad
@ -456,18 +456,134 @@ dqmul908 multiply 9.999999999999999999999999999999999E-6143 0.0999999999999999
-- hugest -- hugest
dqmul909 multiply 9999999999999999999999999999999999 9999999999999999999999999999999999 -> 9.999999999999999999999999999999998E+67 Inexact Rounded dqmul909 multiply 9999999999999999999999999999999999 9999999999999999999999999999999999 -> 9.999999999999999999999999999999998E+67 Inexact Rounded
-- VG case
dqmul910 multiply 8.81125000000001349436E-1548 8.000000000000000000E-1550 -> 7.049000000000010795488000000000000E-3097 Rounded
-- Examples from SQL proposal (Krishna Kulkarni) -- Examples from SQL proposal (Krishna Kulkarni)
precision: 34 precision: 34
rounding: half_up rounding: half_up
maxExponent: 6144 maxExponent: 6144
minExponent: -6143 minExponent: -6143
dqmul1001 multiply 130E-2 120E-2 -> 1.5600 dqmul911 multiply 130E-2 120E-2 -> 1.5600
dqmul1002 multiply 130E-2 12E-1 -> 1.560 dqmul912 multiply 130E-2 12E-1 -> 1.560
dqmul1003 multiply 130E-2 1E0 -> 1.30 dqmul913 multiply 130E-2 1E0 -> 1.30
dqmul1004 multiply 1E2 1E4 -> 1E+6 dqmul914 multiply 1E2 1E4 -> 1E+6
-- power-of-ten edge cases
dqmul1001 multiply 1 10 -> 10
dqmul1002 multiply 1 100 -> 100
dqmul1003 multiply 1 1000 -> 1000
dqmul1004 multiply 1 10000 -> 10000
dqmul1005 multiply 1 100000 -> 100000
dqmul1006 multiply 1 1000000 -> 1000000
dqmul1007 multiply 1 10000000 -> 10000000
dqmul1008 multiply 1 100000000 -> 100000000
dqmul1009 multiply 1 1000000000 -> 1000000000
dqmul1010 multiply 1 10000000000 -> 10000000000
dqmul1011 multiply 1 100000000000 -> 100000000000
dqmul1012 multiply 1 1000000000000 -> 1000000000000
dqmul1013 multiply 1 10000000000000 -> 10000000000000
dqmul1014 multiply 1 100000000000000 -> 100000000000000
dqmul1015 multiply 1 1000000000000000 -> 1000000000000000
dqmul1016 multiply 1 1000000000000000000 -> 1000000000000000000
dqmul1017 multiply 1 100000000000000000000000000 -> 100000000000000000000000000
dqmul1018 multiply 1 1000000000000000000000000000 -> 1000000000000000000000000000
dqmul1019 multiply 1 10000000000000000000000000000 -> 10000000000000000000000000000
dqmul1020 multiply 1 1000000000000000000000000000000000 -> 1000000000000000000000000000000000
dqmul1021 multiply 10 1 -> 10
dqmul1022 multiply 10 10 -> 100
dqmul1023 multiply 10 100 -> 1000
dqmul1024 multiply 10 1000 -> 10000
dqmul1025 multiply 10 10000 -> 100000
dqmul1026 multiply 10 100000 -> 1000000
dqmul1027 multiply 10 1000000 -> 10000000
dqmul1028 multiply 10 10000000 -> 100000000
dqmul1029 multiply 10 100000000 -> 1000000000
dqmul1030 multiply 10 1000000000 -> 10000000000
dqmul1031 multiply 10 10000000000 -> 100000000000
dqmul1032 multiply 10 100000000000 -> 1000000000000
dqmul1033 multiply 10 1000000000000 -> 10000000000000
dqmul1034 multiply 10 10000000000000 -> 100000000000000
dqmul1035 multiply 10 100000000000000 -> 1000000000000000
dqmul1036 multiply 10 100000000000000000 -> 1000000000000000000
dqmul1037 multiply 10 10000000000000000000000000 -> 100000000000000000000000000
dqmul1038 multiply 10 100000000000000000000000000 -> 1000000000000000000000000000
dqmul1039 multiply 10 1000000000000000000000000000 -> 10000000000000000000000000000
dqmul1040 multiply 10 100000000000000000000000000000000 -> 1000000000000000000000000000000000
dqmul1041 multiply 100 0.1 -> 10.0
dqmul1042 multiply 100 1 -> 100
dqmul1043 multiply 100 10 -> 1000
dqmul1044 multiply 100 100 -> 10000
dqmul1045 multiply 100 1000 -> 100000
dqmul1046 multiply 100 10000 -> 1000000
dqmul1047 multiply 100 100000 -> 10000000
dqmul1048 multiply 100 1000000 -> 100000000
dqmul1049 multiply 100 10000000 -> 1000000000
dqmul1050 multiply 100 100000000 -> 10000000000
dqmul1051 multiply 100 1000000000 -> 100000000000
dqmul1052 multiply 100 10000000000 -> 1000000000000
dqmul1053 multiply 100 100000000000 -> 10000000000000
dqmul1054 multiply 100 1000000000000 -> 100000000000000
dqmul1055 multiply 100 10000000000000 -> 1000000000000000
dqmul1056 multiply 100 10000000000000000 -> 1000000000000000000
dqmul1057 multiply 100 1000000000000000000000000 -> 100000000000000000000000000
dqmul1058 multiply 100 10000000000000000000000000 -> 1000000000000000000000000000
dqmul1059 multiply 100 100000000000000000000000000 -> 10000000000000000000000000000
dqmul1060 multiply 100 10000000000000000000000000000000 -> 1000000000000000000000000000000000
dqmul1061 multiply 1000 0.01 -> 10.00
dqmul1062 multiply 1000 0.1 -> 100.0
dqmul1063 multiply 1000 1 -> 1000
dqmul1064 multiply 1000 10 -> 10000
dqmul1065 multiply 1000 100 -> 100000
dqmul1066 multiply 1000 1000 -> 1000000
dqmul1067 multiply 1000 10000 -> 10000000
dqmul1068 multiply 1000 100000 -> 100000000
dqmul1069 multiply 1000 1000000 -> 1000000000
dqmul1070 multiply 1000 10000000 -> 10000000000
dqmul1071 multiply 1000 100000000 -> 100000000000
dqmul1072 multiply 1000 1000000000 -> 1000000000000
dqmul1073 multiply 1000 10000000000 -> 10000000000000
dqmul1074 multiply 1000 100000000000 -> 100000000000000
dqmul1075 multiply 1000 1000000000000 -> 1000000000000000
dqmul1076 multiply 1000 1000000000000000 -> 1000000000000000000
dqmul1077 multiply 1000 100000000000000000000000 -> 100000000000000000000000000
dqmul1078 multiply 1000 1000000000000000000000000 -> 1000000000000000000000000000
dqmul1079 multiply 1000 10000000000000000000000000 -> 10000000000000000000000000000
dqmul1080 multiply 1000 1000000000000000000000000000000 -> 1000000000000000000000000000000000
dqmul1081 multiply 10000 0.001 -> 10.000
dqmul1082 multiply 10000 0.01 -> 100.00
dqmul1083 multiply 10000 0.1 -> 1000.0
dqmul1084 multiply 10000 1 -> 10000
dqmul1085 multiply 10000 10 -> 100000
dqmul1086 multiply 10000 100 -> 1000000
dqmul1087 multiply 10000 1000 -> 10000000
dqmul1088 multiply 10000 10000 -> 100000000
dqmul1089 multiply 10000 100000 -> 1000000000
dqmul1090 multiply 10000 1000000 -> 10000000000
dqmul1091 multiply 10000 10000000 -> 100000000000
dqmul1092 multiply 10000 100000000 -> 1000000000000
dqmul1093 multiply 10000 1000000000 -> 10000000000000
dqmul1094 multiply 10000 10000000000 -> 100000000000000
dqmul1095 multiply 10000 100000000000 -> 1000000000000000
dqmul1096 multiply 10000 100000000000000 -> 1000000000000000000
dqmul1097 multiply 10000 10000000000000000000000 -> 100000000000000000000000000
dqmul1098 multiply 10000 100000000000000000000000 -> 1000000000000000000000000000
dqmul1099 multiply 10000 1000000000000000000000000 -> 10000000000000000000000000000
dqmul1100 multiply 10000 100000000000000000000000000000 -> 1000000000000000000000000000000000
dqmul1107 multiply 10000 99999999999 -> 999999999990000
dqmul1108 multiply 10000 99999999999 -> 999999999990000
-- Null tests -- Null tests
dqmul990 multiply 10 # -> NaN Invalid_operation dqmul9990 multiply 10 # -> NaN Invalid_operation
dqmul991 multiply # 10 -> NaN Invalid_operation dqmul9991 multiply # 10 -> NaN Invalid_operation

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decQuads. -- All operands and results are decQuads.
extended: 1 extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decQuads. -- All operands and results are decQuads.
extended: 1 extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decQuads. -- All operands and results are decQuads.
extended: 1 extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
clamp: 1 clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decQuads. -- All operands and results are decQuads.
extended: 1 extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- Most of the tests here assume a "regular pattern", where the -- Most of the tests here assume a "regular pattern", where the
-- sign and coefficient are +1. -- sign and coefficient are +1.

View File

@ -18,7 +18,7 @@
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
clamp: 1 clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
clamp: 1 clamp: 1
@ -580,6 +580,17 @@ dqrem1058 remainder -1e-277 -1e+311 -> -1E-277
-- Gyuris example -- Gyuris example
dqrem1070 remainder 8.336804418094040989630006819881709E-6143 8.336804418094040989630006819889000E-6143 -> 8.336804418094040989630006819881709E-6143 dqrem1070 remainder 8.336804418094040989630006819881709E-6143 8.336804418094040989630006819889000E-6143 -> 8.336804418094040989630006819881709E-6143
-- destructive subtract
dqrem1120 remainder 1234567890123456789012345678901234 1.000000000000000000000000000000001 -> 0.765432109876543210987654321098768
dqrem1121 remainder 1234567890123456789012345678901234 1.00000000000000000000000000000001 -> 0.65432109876543210987654321098779
dqrem1122 remainder 1234567890123456789012345678901234 1.0000000000000000000000000000001 -> 0.5432109876543210987654321098890
dqrem1123 remainder 1234567890123456789012345678901255 4.000000000000000000000000000000001 -> 2.691358027469135802746913580274687
dqrem1124 remainder 1234567890123456789012345678901234 4.000000000000000000000000000000001 -> 1.691358027469135802746913580274692
dqrem1125 remainder 1234567890123456789012345678901234 4.9999999999999999999999999999999 -> 3.6913578024691357802469135780251
dqrem1126 remainder 1234567890123456789012345678901234 4.99999999999999999999999999999999 -> 1.46913578024691357802469135780247
dqrem1127 remainder 1234567890123456789012345678901234 4.999999999999999999999999999999999 -> 4.246913578024691357802469135780246
dqrem1128 remainder 1234567890123456789012345678901234 5.0000000000000000000000000000001 -> 4.3086421975308642197530864219759
-- Null tests -- Null tests
dqrem1000 remainder 10 # -> NaN Invalid_operation dqrem1000 remainder 10 # -> NaN Invalid_operation
dqrem1001 remainder # 10 -> NaN Invalid_operation dqrem1001 remainder # 10 -> NaN Invalid_operation

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
clamp: 1 clamp: 1
@ -612,6 +612,19 @@ dqrmn1058 remaindernear -1e-277 -1e+311 -> -1E-277
-- Gyuris example -- Gyuris example
dqrmn1070 remainder 8.336804418094040989630006819881709E-6143 8.336804418094040989630006819889000E-6143 -> 8.336804418094040989630006819881709E-6143 dqrmn1070 remainder 8.336804418094040989630006819881709E-6143 8.336804418094040989630006819889000E-6143 -> 8.336804418094040989630006819881709E-6143
-- destructive subtract
dqrmn1101 remaindernear 1234567890123456789012345678901234 1.000000000000000000000000000000001 -> -0.234567890123456789012345678901233
dqrmn1102 remaindernear 1234567890123456789012345678901234 1.00000000000000000000000000000001 -> -0.34567890123456789012345678901222
dqrmn1103 remaindernear 1234567890123456789012345678901234 1.0000000000000000000000000000001 -> -0.4567890123456789012345678901111
dqrmn1104 remaindernear 1234567890123456789012345678901255 4.000000000000000000000000000000001 -> -1.308641972530864197253086419725314
dqrmn1105 remaindernear 1234567890123456789012345678901234 4.000000000000000000000000000000001 -> 1.691358027469135802746913580274692
dqrmn1106 remaindernear 1234567890123456789012345678901234 4.9999999999999999999999999999999 -> -1.3086421975308642197530864219748
dqrmn1107 remaindernear 1234567890123456789012345678901234 4.99999999999999999999999999999999 -> 1.46913578024691357802469135780247
dqrmn1108 remaindernear 1234567890123456789012345678901234 4.999999999999999999999999999999999 -> -0.753086421975308642197530864219753
dqrmn1109 remaindernear 1234567890123456789012345678901234 5.000000000000000000000000000000001 -> -1.246913578024691357802469135780247
dqrmn1110 remaindernear 1234567890123456789012345678901234 5.00000000000000000000000000000001 -> 1.53086421975308642197530864219754
dqrmn1111 remaindernear 1234567890123456789012345678901234 5.0000000000000000000000000000001 -> -0.6913578024691357802469135780242
-- Null tests -- Null tests
dqrmn1000 remaindernear 10 # -> NaN Invalid_operation dqrmn1000 remaindernear 10 # -> NaN Invalid_operation
dqrmn1001 remaindernear # 10 -> NaN Invalid_operation dqrmn1001 remaindernear # 10 -> NaN Invalid_operation

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
clamp: 1 clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- All operands and results are decQuads. -- All operands and results are decQuads.
extended: 1 extended: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
clamp: 1 clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
extended: 1 extended: 1
clamp: 1 clamp: 1

View File

@ -17,7 +17,7 @@
-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK -- -- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
-- mfc@uk.ibm.com -- -- mfc@uk.ibm.com --
------------------------------------------------------------------------ ------------------------------------------------------------------------
version: 2.56 version: 2.57
-- This set of tests are for decQuads only; all arguments are -- This set of tests are for decQuads only; all arguments are
-- representable in a decQuad -- representable in a decQuad

Some files were not shown because too many files have changed in this diff Show More