summaryrefslogtreecommitdiffstats
path: root/Lib/test/decimaltestdata/ddCopyAbs.decTest
blob: d436a1940c1f9138d76399bed921d70731dfd278 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
------------------------------------------------------------------------
-- ddCopyAbs.decTest -- quiet decDouble copy and set sign to zero     --
-- 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      --
-- these testcases.                                                   --
--                                                                    --
-- These testcases are experimental ('beta' versions), and they       --
-- may contain errors.  They are offered on an as-is basis.  In       --
-- particular, achieving the same results as the tests here is not    --
-- a guarantee that an implementation complies with any Standard      --
-- or specification.  The tests are not exhaustive.                   --
--                                                                    --
-- Please send comments, suggestions, and corrections to the author:  --
--   Mike Cowlishaw, IBM Fellow                                       --
--   IBM UK, PO Box 31, Birmingham Road, Warwick CV34 5JL, UK         --
--   mfc@uk.ibm.com                                                   --
------------------------------------------------------------------------
version: 2.59

-- All operands and results are decDoubles.
precision:   16
maxExponent: 384
minExponent: -383
extended:    1
clamp:       1
rounding:    half_even

-- Sanity check
ddcpa001 copyabs       +7.50  -> 7.50

-- Infinities
ddcpa011 copyabs  Infinity    -> Infinity
ddcpa012 copyabs  -Infinity   -> Infinity

-- NaNs, 0 payload
ddcpa021 copyabs         NaN  -> NaN
ddcpa022 copyabs        -NaN  -> NaN
ddcpa023 copyabs        sNaN  -> sNaN
ddcpa024 copyabs       -sNaN  -> sNaN

-- NaNs, non-0 payload
ddcpa031 copyabs       NaN10  -> NaN10
ddcpa032 copyabs      -NaN15  -> NaN15
ddcpa033 copyabs      sNaN15  -> sNaN15
ddcpa034 copyabs     -sNaN10  -> sNaN10
ddcpa035 copyabs       NaN7   -> NaN7
ddcpa036 copyabs      -NaN7   -> NaN7
ddcpa037 copyabs      sNaN101 -> sNaN101
ddcpa038 copyabs     -sNaN101 -> sNaN101

-- finites
ddcpa101 copyabs          7   -> 7
ddcpa102 copyabs         -7   -> 7
ddcpa103 copyabs         75   -> 75
ddcpa104 copyabs        -75   -> 75
ddcpa105 copyabs       7.10   -> 7.10
ddcpa106 copyabs      -7.10   -> 7.10
ddcpa107 copyabs       7.500  -> 7.500
ddcpa108 copyabs      -7.500  -> 7.500

-- zeros
ddcpa111 copyabs          0   -> 0
ddcpa112 copyabs         -0   -> 0
ddcpa113 copyabs       0E+6   -> 0E+6
ddcpa114 copyabs      -0E+6   -> 0E+6
ddcpa115 copyabs     0.0000   -> 0.0000
ddcpa116 copyabs    -0.0000   -> 0.0000
ddcpa117 copyabs      0E-141  -> 0E-141
ddcpa118 copyabs     -0E-141  -> 0E-141

-- full coefficients, alternating bits
ddcpa121 copyabs  2682682682682682         -> 2682682682682682
ddcpa122 copyabs  -2682682682682682        -> 2682682682682682
ddcpa123 copyabs  1341341341341341         -> 1341341341341341
ddcpa124 copyabs  -1341341341341341        -> 1341341341341341

-- Nmax, Nmin, Ntiny
ddcpa131 copyabs  9.999999999999999E+384   -> 9.999999999999999E+384
ddcpa132 copyabs  1E-383                   -> 1E-383
ddcpa133 copyabs  1.000000000000000E-383   -> 1.000000000000000E-383
ddcpa134 copyabs  1E-398                   -> 1E-398

ddcpa135 copyabs  -1E-398                  -> 1E-398
ddcpa136 copyabs  -1.000000000000000E-383  -> 1.000000000000000E-383
ddcpa137 copyabs  -1E-383                  -> 1E-383
ddcpa138 copyabs  -9.999999999999999E+384  -> 9.999999999999999E+384
'>| Fixes: #22586 * | IRSL: Avoid duplication of Intel redist lib folder pathsAlexander Grund2021-08-021-9/+24 | | * | IRSL: Fix check of path to Intel redistdirAlexander Grund2021-08-021-1/+1 |/ | | | | | Fix a cut-n-paste error from commit fd4406f33e (IRSL: Add Intel compiler support, 2017-08-16, v3.10.0-rc1~187^2). Make the checked and used paths match. * IRSL: Add Intel oneAPI redist location on WindowsBrad King2021-06-081-1/+3 | | | | Fixes: #22283 * IRSL: Add support for IntelLLVMWilliam R. Dieter2021-01-281-7/+7 | | | | | | Use the same code paths as the `Intel` compiler id. Signed-off-by: William R. Dieter <william.r.dieter@intel.com> * IRSL: Add support for non-x86/x64 architectures such as arm64pastdue2021-01-251-7/+9 | | | | | | Implement `CMAKE_MSVC_ARCH` determination for more architectures. Fixes: #16734 * Merge topic 'irsl-msvcp_atomic_wait_dll'Brad King2021-01-181-0/+2 |\ | | | | | | | | | | | | 6718caaa2f IRSL: Install msvcp${v}${d}_atomic_wait.dll if available with CRT Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5702 | * IRSL: Install msvcp${v}${d}_atomic_wait.dll if available with CRTKelly Walker2021-01-151-0/+2 | | | | | | | | | | | | | | VS now distributes these additional runtime libraries. Install them if available. Fixes: #21675 * | Help: Add `.. versionadded` directives to module docsNikita Nemkin2020-12-021-4/+12 |/ | | | Issue: #19715 * IRSL: Fix path to Intel 32-bit redist librariesTorgeir Rusten2020-07-091-1/+1 | | | | | | The path to the 32 bit libraries in the Intel windows/redist folder use ia32. I don't remember if this has changed at some point, but ia32 has been used at least since Intel Fortran XE 2018. * IRSL: Install msvcp140_{1,2,codecvt_ids}.dll if availableBrad King2020-01-201-6/+20 | | | | | | | VS now distributes these additional runtime libraries. Install them if available. Fixes: #20228 * IRSL: Install vcruntime140_1.dll if availableBrad King2019-10-111-0/+6 | | | | | | | VS 2019 now distributes this additional runtime DLL with its `14.2x` toolsets. Fixes: #19829 * IRSL: Prefer MSVC runtime libraries from newest toolset firstBrad King2019-10-111-0/+1 | * IRSL: Fix discovery of VS 2019 v141 toolset redistributablesJames Butler2019-07-221-4/+12 | | | | | | | | Since VS 2019, the v141 toolset redistributables can be found in either the VS 2019 or VS 2017 install directory. Update the logic to search multiple versions of VS. Fixes: #19488 * IRSL: Fix typo in v143 toolset version checkJames Butler2019-07-221-2/+2 | | | | | | Fix the toolset v143 check from commit 33ee779330 (IRSL: Fix discovery of VS 2019 v142 toolset redistributables, 2019-04-03, v3.14.2~6^2) to check the correct variable. * IRSL: Update redist directory for VS 2019 update 1Brad King2019-04-151-2/+5 | | | | | | | | VS 2019 Update 1 will fix its redist directories to be named `VC142` instead of `VC141`. It will also use cl `19.21` instead of `19.20` so we can use that to distinguish the versions. Fixes: #19131 * IRSL: Fix discovery of VS 2019 v142 toolset redistributablesBrad King2019-04-041-9/+14 | | | | | | | | | Since VS 2017's v141 toolset there is no longer a simple equation to calculate the redist name, dll version, and VS IDE version from just the MSVC toolset version. Refactor the logic to use hard-coded values and warn when a new version is not supported. Fixes: #19125 * Merge topic 'irsl-ucrt-version'Brad King2018-11-201-3/+19 |\ | | | | | | | | | | | | 01c7d9ce86 IRSL: Detect versioned Windows Universal CRT directories Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2637 | * IRSL: Detect versioned Windows Universal CRT directoriesBrad King2018-11-191-3/+19 | | | | | | | | | | | | | | Windows SDK version 10.0.17763.0 now places the uCRT libraries in a versioned directory. Fixes: #18603 * | Help: Convert remaining modules to block-style commentsKitware Robot2018-10-221-54/+55 |/ * Fix misc. typosluz.paz2018-10-031-3/+3 | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Found via `codespell -q 3 -I ../cmake-whitelist.txt --skip="./Utilities"` where the whitelist consists of ``` aci ans behaviour buil convertor dum earch ect emmited emmitted helpfull iff isnt ith lowercased mose nd nknown nto objext ot pathes pevents splitted substract superceded supercedes te tim todays uint upto whitespaces ``` * Merge topic 'irsl-fortran-only-linux'Brad King2018-05-141-8/+10 |\ | | | | | | | | | | | | 05ece372a6 IRSL: Fix Intel library list for ifort-only setups Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2061 | * IRSL: Fix Intel library list for ifort-only setupsChristian Pfeiffer2018-05-111-8/+10 | | | | | | | | Fixes: #17727 * | Merge topic 'InstallRequiredSystemLibraries-mfcm'Brad King2018-04-191-0/+8 |\ \ | | | | | | | | | | | | | | | | | | bdf660cab5 InstallRequiredSystemLibraries: Check for existence of mfcm dlls Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1980 | * | InstallRequiredSystemLibraries: Check for existence of mfcm dllsChristof Krüger2018-04-181-0/+8 | |/ | | | | | | | | | | | | | | | | Previously, only existence of `mfc${v}.dll` and `mfc${v}d.dll` variants was checked and it was assumed that the managed variants `mfcm*.dll` also existed. This assumption doesn't hold with Visual Studio 2017. Check each file separately. Fixes: #17913 * | Modules: Use MSVC_TOOLSET_VERSION variable to simplify logicArkady Shapkin2018-04-041-75/+30 |/ * Merge topic 'irsl-intel-fortran-only-fix'Brad King2017-12-141-5/+8 |\ | | | | | | | | | | | | 7d1ed84c IRSL: Skip libgfxoffload if no Intel C++ is used Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1589 | * IRSL: Skip libgfxoffload if no Intel C++ is usedChristian Pfeiffer2017-12-121-5/+8 | | | | | | | | | | | | | | `libgfxoffload` is only used and installed by the Intel C/C++ compilers and will be unavailable if only Intel Fortran has been installed. Fixes: #17550 * | Merge topic 'irsl-msvc-omp-fix'Brad King2017-12-131-2/+7 |\ \ | |/ |/| | | | | | | | | 4dae55fb IRSL: Fix MSVC variable deferencing Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1588 | * IRSL: Fix MSVC variable deferencingChristian Pfeiffer2017-12-121-2/+7 | | | | | | | | Fixes: #17529 * | IRSL: Install the 1041 folder for Intel compilersChristian Pfeiffer2017-11-201-1/+4 |/ | | | | | | | | The presence of the `1041` seems to solely depend on whether a given Intel compiler release was available in Japanese or not. Install it if it is present and silently ignore it otherwise. Example: The Intel 2018.0 release did not ship it, but the 2018.1 compilers have it. * IRSL: Add support for the 2018 release on Windows.Christian Pfeiffer2017-11-061-3/+5 | | | | Fixes: #17421 * Merge branch 'backport-irsl-vs15-future' into irsl-vs15-futureBrad King2017-09-06