summaryrefslogtreecommitdiffstats
path: root/test/math
Commit message (Collapse)AuthorAgeFilesLines
* test/math: bessel depend on XSI_MATHBernhard Reutner-Fischer2010-11-241-2/+6
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: fix tgamma to actually do return true gamma functionDenys Vlasenko2010-10-316-7/+83
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: remove int_WRAPPER_C99 macro, add test which checks that I did not ↵Denys Vlasenko2010-10-312-1/+118
| | | | | | break it Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: fix false positives in double testsDenys Vlasenko2010-10-312-1/+19
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: fix remaining failures in test-floatDenys Vlasenko2010-10-312-1/+53
| | | | | | | | These two failures are fixed: Failure: Test: ilogb (0.0) == FP_ILOGB0 plus exceptions allowed Failure: Test: ilogb (NaN) == FP_ILOGBNAN plus exceptions allowed Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libm: fix rint/scalb testcase failuresDenys Vlasenko2010-10-302-15/+45
| | | | | | | | | | | | | | | | | | | These failures no longer happen: Failure: Test: scalb (2.0, 0.5) == NaN plus invalid exception Failure: Test: scalb (3.0, -2.5) == NaN plus invalid exception Failure: Test: rint (0.5) == 0.0 Failure: Test: rint (1.5) == 2.0 Failure: Test: rint (2.5) == 2.0 Failure: Test: rint (3.5) == 4.0 Failure: Test: rint (4.5) == 4.0 Failure: Test: rint (-0.5) == -0.0 Failure: Test: rint (-1.5) == -2.0 Failure: Test: rint (-2.5) == -2.0 Failure: Test: rint (-3.5) == -4.0 Failure: Test: rint (-4.5) == -4.0 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* test/math/*: unbreakDenys Vlasenko2010-10-3011-10/+10120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test/math was not running at all, presume it has bit rotted: It was trying to run libm-test.c as if it is a binary. It was looking for libm-test-ulps (file with allowed errors in lower bits) in arch-specific dirs which do not exist in uclibc, as a result wrong file (libm-test.inc) was used instead. Test failure was not showing the error result, user had to fish it out from some .out files. I added libm-test-ulps-ARCH files from recent glibc, this filtered out a lot of false positives. For example, cosf(M_PI_6l * 4.0) ideally should be -0.5, we are getting -0.50000005047356477217, and this isn't a failure (the difference is one lowest bit of mantissa). "make check UCLIBC_ONLY=1 VERBOSE=1" still fails, but not as catastrophically as before. For the record, the failure occurs on the stage where we check 32-bit float functions, these tests fail: Failure: Test: modf (NaN, &x) == NaN Failure: Test: ilogb (NaN) == FP_ILOGBNAN plus exceptions allowed Failure: Test: scalb (2.0, 0.5) == NaN plus invalid exception Failure: Test: scalb (3.0, -2.5) == NaN plus invalid exception Failure: Test: scalb (0, NaN) == NaN Failure: Test: scalb (1, NaN) == NaN Failure: Test: scalb (0, inf) == NaN plus invalid exception Failure: Test: scalb (-0, inf) == NaN plus invalid exception Failure: Test: scalb (1, inf) == inf Failure: Test: scalb (-1, inf) == -inf Failure: Test: scalb (inf, -inf) == NaN plus invalid exception Failure: Test: scalb (-inf, -inf) == NaN plus invalid exception Failure: Test: scalb (1, NaN) == NaN Failure: Test: scalb (0, NaN) == NaN Failure: Test: scalb (inf, NaN) == NaN Failure: Test: pow (1, NaN) == 1 Failure: Test: pow (1, inf) == 1 Failure: Test: pow (-1, inf) == 1 Failure: Test: pow (1, -inf) == 1 Failure: Test: pow (-1, -inf) == 1 Failure: Test: rint (0.5) == 0.0 Failure: Test: rint (1.5) == 2.0 Failure: Test: rint (2.5) == 2.0 Failure: Test: rint (3.5) == 4.0 Failure: Test: rint (4.5) == 4.0 Failure: Test: rint (-0.5) == -0.0 Failure: Test: rint (-1.5) == -2.0 Failure: Test: rint (-2.5) == -2.0 Failure: Test: rint (-3.5) == -4.0 Failure: Test: rint (-4.5) == -4.0 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lgamma: fix sign handlingBernhard Reutner-Fischer2010-06-102-1/+20
| | | | | | | add testcase from http://sourceware.org/bugzilla/show_bug.cgi?id=4407 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* libm: enable log2f and exp2fAurelien Jacobs2010-02-041-2/+2
| | | | | Signed-off-by: Aurelien Jacobs <aurel@gnuage.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* test/math: put scalbf test under susv3 legacy defineAustin Foxley2009-12-272-1/+5
| | | | Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Fixed makefiles inclusion flow to pass actual configuration variable values.Carmelo Amoroso2009-03-162-26/+30
| | | | | | | | | | | Test build system modified to be similar to uClibc one: * test custom logic moved from Makefile to a new Makefile.in (to be included by Makefile). * Makefile same for all tests and just used for including all other needed makefiles. Signed-off-by: Salvatore Cro <salvatore.cro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - remove superfluous $(strip)Bernhard Reutner-Fischer2009-02-231-1/+1
|
* test/math/compile_test.c: make it exit with 0 alwaysDenis Vlasenko2009-02-181-1/+2
|
* test/math/compile_test.c: add compile testing of (some) floatsDenis Vlasenko2009-02-171-2/+67
|
* libm/Makefile.in: reformat the list of wrappersDenis Vlasenko2009-02-171-62/+64
| | | | | | | | | | | | | | | so that it is easier to modify, sort, etc; use __ in filenames of wrappers which wrap __functions (it may be useful to have function and file names ALWAYS match); remove names of not implemented wrappers (it was generating useless empty .o files). libm/ldouble_wrappers.c: comment out the wrapper which is not compiled anyway test/math/compile_test.c: improve this test, it was optimizing out some calls, and we don't want that. No actual code changes.
* test/math/compile_test.c: "are long double functions even compile/link?" testDenis Vlasenko2009-02-173-3/+76
| | | | | *: fix everything which prevents above from building
* Pass NO_LONG_DOUBLE flag to basic-test when LONG_DOUBLECarmelo Amoroso2009-02-121-1/+3
| | | | | | | support is not enabled in uclibc to fix build. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* libm/ldouble_wrappers.c: add libm_hidden_def's to fix testsuite buildDenis Vlasenko2009-02-021-0/+2
| | | | | | | test/Rules.mak: don't pass target options to host build test/math/basic-test.c: fix test build error patching file test/unistd/errno.c: fix test build warning
* - add long double math wrappers (Ned Ludd)Bernhard Reutner-Fischer2008-10-031-5/+5
|
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-232-7/+7
|
* Remove automatically generated header when doing make cleanCarmelo Amoroso2008-05-201-1/+1
|
* Fix some sh4 specific entriesCarmelo Amoroso2008-04-251-0/+5
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - fixup asm. No object-code changesBernhard Reutner-Fischer2008-04-241-1/+1
|
* fix license noticeMike Frysinger2006-07-051-1/+1
|
* convert to new framework and disable all tests that failMike Frysinger2006-02-141-95/+15
|
* disable some more unsupported testsMike Frysinger2006-02-141-1/+5
|
* grab from glibcMike Frysinger2006-02-143-0/+213
|
* sync with glibcMike Frysinger2006-02-142-206/+786
|
* err, sorry for the noise, but rename back as glibc uses test-ildoubl.cMike Frysinger2006-02-141-0/+0
|
* rename fileMike Frysinger2006-02-141-0/+0
|
* make test output nicer so its easier to go through a log of `make -s` and ↵Mike Frysinger2005-07-011-4/+2
| | | | find out what works/fails
* remove old depend on Config and make it so that a test failure aborts the ↵Mike Frysinger2005-07-011-10/+10
| | | | make process
* remove unused variableMike Frysinger2005-06-301-1/+1
|
* simplify TESTDIR setting and touchupMike Frysinger2005-06-291-3/+1
|
* no more cvsMike Frysinger2005-02-121-12/+0
|
* Do not make tests depend on CC, since we no longer build a wrapper.Eric Andersen2004-01-021-2/+2
|
* Peter Kjellerstedt writes:Eric Andersen2003-10-181-1/+1
| | | | | | | rm.patch: * Define $(RM) as rm -f in Rules.mak and test/Rules.mak (this is the same definition as gmake uses by default). * Change all occurrences of rm and rm -f into $(RM).
* Update tests to be somewhat consistant with the rest of the worldEric Andersen2003-01-233-3/+49
|
* Rework the math library tests per the glibc math test code, withEric Andersen2002-05-0924-9833/+5522
| | | | | many unsupported tests disabled for the moment. -Erik
* run dos2unix on these filesEric Andersen2002-04-0314-9701/+9701
|
* Update my email address. I am no longer andersen@lineo.comEric Andersen2001-12-191-0/+20
|
* Add in some math lib testsEric Andersen2001-10-0215-0/+9839