2004-07-01 08:01:35 -03:00
|
|
|
------------------------------------------------------------------------
|
|
|
|
-- testall.decTest -- run all general decimal arithmetic testcases --
|
2008-07-27 03:39:07 -03:00
|
|
|
-- Copyright (c) IBM Corporation, 1981, 2008. All rights reserved. --
|
2004-07-01 08:01:35 -03:00
|
|
|
------------------------------------------------------------------------
|
|
|
|
-- 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 --
|
|
|
|
------------------------------------------------------------------------
|
2009-10-27 14:02:46 -03:00
|
|
|
version: 2.59
|
2004-07-01 08:01:35 -03:00
|
|
|
|
|
|
|
-- core tests (using Extended: 1) --------------------------------------
|
|
|
|
dectest: base
|
2007-09-13 15:13:15 -03:00
|
|
|
|
2004-07-01 08:01:35 -03:00
|
|
|
dectest: abs
|
|
|
|
dectest: add
|
2007-09-13 15:13:15 -03:00
|
|
|
dectest: and
|
2004-07-01 08:01:35 -03:00
|
|
|
dectest: clamp
|
2007-09-13 15:13:15 -03:00
|
|
|
dectest: class
|
2004-07-01 08:01:35 -03:00
|
|
|
dectest: compare
|
2007-09-13 15:13:15 -03:00
|
|
|
dectest: comparesig
|
|
|
|
dectest: comparetotal
|
|
|
|
dectest: comparetotmag
|
|
|
|
dectest: copy
|
|
|
|
dectest: copyabs
|
|
|
|
dectest: copynegate
|
|
|
|
dectest: copysign
|
2004-07-01 08:01:35 -03:00
|
|
|
dectest: divide
|
|
|
|
dectest: divideint
|
2007-09-13 15:13:15 -03:00
|
|
|
dectest: exp
|
|
|
|
dectest: fma
|
2004-07-01 08:01:35 -03:00
|
|
|
dectest: inexact
|
2007-09-13 15:13:15 -03:00
|
|
|
dectest: invert
|
|
|
|
dectest: ln
|
|
|
|
dectest: logb
|
|
|
|
dectest: log10
|
2004-07-01 08:01:35 -03:00
|
|
|
dectest: max
|
2007-09-13 15:13:15 -03:00
|
|
|
dectest: maxmag
|
2004-07-01 08:01:35 -03:00
|
|
|
dectest: min
|
2007-09-13 15:13:15 -03:00
|
|
|
dectest: minmag
|
2004-07-01 08:01:35 -03:00
|
|
|
dectest: minus
|
|
|
|
dectest: multiply
|
2007-09-13 15:13:15 -03:00
|
|
|
dectest: nextminus
|
|
|
|
dectest: nextplus
|
|
|
|
dectest: nexttoward
|
|
|
|
dectest: or
|
2004-07-01 08:01:35 -03:00
|
|
|
dectest: plus
|
|
|
|
dectest: power
|
2007-09-13 15:13:15 -03:00
|
|
|
dectest: powersqrt
|
2004-07-01 08:01:35 -03:00
|
|
|
dectest: quantize
|
|
|
|
dectest: randoms
|
2007-09-13 15:13:15 -03:00
|
|
|
dectest: reduce -- [was called normalize]
|
2004-07-01 08:01:35 -03:00
|
|
|
dectest: remainder
|
|
|
|
dectest: remaindernear
|
|
|
|
dectest: rescale -- [obsolete]
|
2007-09-13 15:13:15 -03:00
|
|
|
dectest: rotate
|
2004-07-01 08:01:35 -03:00
|
|
|
dectest: rounding
|
|
|
|
dectest: samequantum
|
2007-09-13 15:13:15 -03:00
|
|
|
dectest: scaleb
|
|
|
|
dectest: shift
|
2004-07-01 08:01:35 -03:00
|
|
|
dectest: squareroot
|
|
|
|
dectest: subtract
|
|
|
|
dectest: tointegral
|
2007-09-13 15:13:15 -03:00
|
|
|
dectest: tointegralx
|
2004-07-01 08:01:35 -03:00
|
|
|
dectest: trim
|
2007-09-13 15:13:15 -03:00
|
|
|
dectest: xor
|
2004-07-01 08:01:35 -03:00
|
|
|
|
2007-09-13 15:13:15 -03:00
|
|
|
-- 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
|
2004-07-01 08:01:35 -03:00
|
|
|
|
|
|
|
-- General 31->33-digit boundary tests
|
2004-08-17 03:42:13 -03:00
|
|
|
dectest: randombound32
|
2004-07-01 08:01:35 -03:00
|
|
|
|