testall.decTest 2.67 KB
Newer Older
1 2
------------------------------------------------------------------------
-- testall.decTest -- run all general decimal arithmetic testcases    --
3
-- Copyright (c) IBM Corporation, 1981, 2008.  All rights reserved.   --
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
------------------------------------------------------------------------
-- 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                                                   --
------------------------------------------------------------------------
20
version: 2.59
21 22 23

-- core tests (using Extended: 1) --------------------------------------
dectest: base
24

25 26
dectest: abs
dectest: add
27
dectest: and
28
dectest: clamp
29
dectest: class
30
dectest: compare
31 32 33 34 35 36 37
dectest: comparesig
dectest: comparetotal
dectest: comparetotmag
dectest: copy
dectest: copyabs
dectest: copynegate
dectest: copysign
38 39
dectest: divide
dectest: divideint
40 41
dectest: exp
dectest: fma
42
dectest: inexact
43 44 45 46
dectest: invert
dectest: ln
dectest: logb
dectest: log10
47
dectest: max
48
dectest: maxmag
49
dectest: min
50
dectest: minmag
51 52
dectest: minus
dectest: multiply
53 54 55 56
dectest: nextminus
dectest: nextplus
dectest: nexttoward
dectest: or
57 58
dectest: plus
dectest: power
59
dectest: powersqrt
60 61
dectest: quantize
dectest: randoms
62
dectest: reduce               -- [was called normalize]
63 64 65
dectest: remainder
dectest: remaindernear
dectest: rescale              -- [obsolete]
66
dectest: rotate
67 68
dectest: rounding
dectest: samequantum
69 70
dectest: scaleb
dectest: shift
71 72 73
dectest: squareroot
dectest: subtract
dectest: tointegral
74
dectest: tointegralx
75
dectest: trim
76
dectest: xor
77

78 79 80 81 82 83
-- The next are for the Strawman 4d concrete representations and
-- tests at those sizes [including dsEncode, ddEncode, and dqEncode,
-- which replace decimal32, decimal64, and decimal128]
dectest: decSingle
dectest: decDouble
dectest: decQuad
84 85

-- General 31->33-digit boundary tests
86
dectest: randombound32
87