blob: f99d86a42676139ceb955e07bfbb5ba194d65052 [file] [log] [blame]
Thomas Wouters1b7f8912007-09-19 03:06:30 +00001------------------------------------------------------------------------
2-- ddCopy.decTest -- quiet decDouble copy --
Benjamin Petersonf17ff4e2008-07-31 16:32:12 +00003-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
Thomas Wouters1b7f8912007-09-19 03:06:30 +00004------------------------------------------------------------------------
5-- Please see the document "General Decimal Arithmetic Testcases" --
6-- at http://www2.hursley.ibm.com/decimal for the description of --
7-- these testcases. --
8-- --
9-- These testcases are experimental ('beta' versions), and they --
10-- may contain errors. They are offered on an as-is basis. In --
11-- particular, achieving the same results as the tests here is not --
12-- a guarantee that an implementation complies with any Standard --
13-- or specification. The tests are not exhaustive. --
14-- --
15-- Please send comments, suggestions, and corrections to the author: --
16-- Mike Cowlishaw, IBM Fellow --
17-- IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK --
18-- mfc@uk.ibm.com --
19------------------------------------------------------------------------
Mark Dickinson8a546532009-10-08 16:30:38 +000020version: 2.59
Thomas Wouters1b7f8912007-09-19 03:06:30 +000021
22-- All operands and results are decDoubles.
23precision: 16
24maxExponent: 384
25minExponent: -383
26extended: 1
27clamp: 1
28rounding: half_even
29
30-- Sanity check
31ddcpy001 copy +7.50 -> 7.50
32
33-- Infinities
34ddcpy011 copy Infinity -> Infinity
35ddcpy012 copy -Infinity -> -Infinity
36
37-- NaNs, 0 payload
38ddcpy021 copy NaN -> NaN
39ddcpy022 copy -NaN -> -NaN
40ddcpy023 copy sNaN -> sNaN
41ddcpy024 copy -sNaN -> -sNaN
42
43-- NaNs, non-0 payload
44ddcpy031 copy NaN10 -> NaN10
45ddcpy032 copy -NaN10 -> -NaN10
46ddcpy033 copy sNaN10 -> sNaN10
47ddcpy034 copy -sNaN10 -> -sNaN10
48ddcpy035 copy NaN7 -> NaN7
49ddcpy036 copy -NaN7 -> -NaN7
50ddcpy037 copy sNaN101 -> sNaN101
51ddcpy038 copy -sNaN101 -> -sNaN101
52
53-- finites
54ddcpy101 copy 7 -> 7
55ddcpy102 copy -7 -> -7
56ddcpy103 copy 75 -> 75
57ddcpy104 copy -75 -> -75
58ddcpy105 copy 7.50 -> 7.50
59ddcpy106 copy -7.50 -> -7.50
60ddcpy107 copy 7.500 -> 7.500
61ddcpy108 copy -7.500 -> -7.500
62
63-- zeros
64ddcpy111 copy 0 -> 0
65ddcpy112 copy -0 -> -0
66ddcpy113 copy 0E+4 -> 0E+4
67ddcpy114 copy -0E+4 -> -0E+4
68ddcpy115 copy 0.0000 -> 0.0000
69ddcpy116 copy -0.0000 -> -0.0000
70ddcpy117 copy 0E-141 -> 0E-141
71ddcpy118 copy -0E-141 -> -0E-141
72
73-- full coefficients, alternating bits
74ddcpy121 copy 2682682682682682 -> 2682682682682682
75ddcpy122 copy -2682682682682682 -> -2682682682682682
76ddcpy123 copy 1341341341341341 -> 1341341341341341
77ddcpy124 copy -1341341341341341 -> -1341341341341341
78
79-- Nmax, Nmin, Ntiny
80ddcpy131 copy 9.999999999999999E+384 -> 9.999999999999999E+384
81ddcpy132 copy 1E-383 -> 1E-383
82ddcpy133 copy 1.000000000000000E-383 -> 1.000000000000000E-383
83ddcpy134 copy 1E-398 -> 1E-398
84
85ddcpy135 copy -1E-398 -> -1E-398
86ddcpy136 copy -1.000000000000000E-383 -> -1.000000000000000E-383
87ddcpy137 copy -1E-383 -> -1E-383
88ddcpy138 copy -9.999999999999999E+384 -> -9.999999999999999E+384