summaryrefslogtreecommitdiff
path: root/test/math
AgeCommit message (Collapse)Author
2014-04-23test/math: Adjust arm tests for older ULPs formatGregory Fong
The ULPs format in glibc has changed slightly and now deviates from that in uClibc, so when using the files directly from glibc, for certain types of tests the ULPs values were incorrectly defaulting to 0 rather than using the values provided. This caused some tests to fail despite the max ULPs being correctly marked. Regenerated and updated part of the ULPs file to fix this issue. This also added values for exp and log. Signed-off-by: Gregory Fong <gregory.0xf0@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-04-06test/math: add libm-test-ulps-{arm,mips32,mips64} filesGregory Fong
Adds the mips and arm test ULPs from glibc. Signed-off-by: Gregory Fong <gregory.0xf0@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-04-04test/math: don't try to build test dep as testGregory Fong
libm-test.c is a generated file needed by the other math tests, but test rules were trying to build it as a test if trying to compile the tests a second time. Signed-off-by: Gregory Fong <gregory.0xf0@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-04-04test/math: Select correct ULPs for mips32/mips64Gregory Fong
Using TARGET_ARCH isn't sufficient when ISA can differ. Signed-off-by: Gregory Fong <gregory.0xf0@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2014-02-18test: Fix math .c dependencyBernhard Reutner-Fischer
When explicitly running the compile target we were missing a dependency to generate the libm-test.c. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2013-03-14test: add missing top_srcdirBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2013-03-14test: cater for configBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-11-18Replace FSF snail mail address with URLsMike Frysinger
This matches a similar change made to glibc. No functional changes here. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-11-13test/math: add libm-test-ulps-xtensa fileChris Zankel
Add ulps file for Xtensa for the math test. Signed-off-by: Chris Zankel <chris@zankel.net>
2012-10-29test: handle !DO_C99_MATHBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2012-02-07tests:math: fix build of math tests for SH4Carmelo Amoroso
Rename libm-test-ulps-sh4 to libm-test-ulps-sh as the ULPS file is expected to match pattern libm-test-ulps-$(TARGET_ARCH). Indeed "sh4" is the TARGET_SUBARCH. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2010-11-24test/math: bessel depend on XSI_MATHBernhard Reutner-Fischer
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-10-31libm: fix tgamma to actually do return true gamma functionDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-31libm: remove int_WRAPPER_C99 macro, add test which checks that I did not ↵Denys Vlasenko
break it Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-31libm: fix false positives in double testsDenys Vlasenko
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2010-10-31libm: fix remaining failures in test-floatDenys Vlasenko
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>
2010-10-30libm: fix rint/scalb testcase failuresDenys Vlasenko
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>
2010-10-30test/math/*: unbreakDenys Vlasenko
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>
2010-06-10lgamma: fix sign handlingBernhard Reutner-Fischer
add testcase from http://sourceware.org/bugzilla/show_bug.cgi?id=4407 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2010-02-04libm: enable log2f and exp2fAurelien Jacobs
Signed-off-by: Aurelien Jacobs <aurel@gnuage.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2009-12-27test/math: put scalbf test under susv3 legacy defineAustin Foxley
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
2009-03-16Fixed makefiles inclusion flow to pass actual configuration variable values.Carmelo Amoroso
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>
2009-02-23- remove superfluous $(strip)Bernhard Reutner-Fischer
2009-02-18test/math/compile_test.c: make it exit with 0 alwaysDenis Vlasenko
2009-02-17test/math/compile_test.c: add compile testing of (some) floatsDenis Vlasenko
2009-02-17libm/Makefile.in: reformat the list of wrappersDenis Vlasenko
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.
2009-02-17test/math/compile_test.c: "are long double functions even compile/link?" testDenis Vlasenko
*: fix everything which prevents above from building
2009-02-12Pass NO_LONG_DOUBLE flag to basic-test when LONG_DOUBLECarmelo Amoroso
support is not enabled in uclibc to fix build. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2009-02-02libm/ldouble_wrappers.c: add libm_hidden_def's to fix testsuite buildDenis Vlasenko
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
2008-10-03- add long double math wrappers (Ned Ludd)Bernhard Reutner-Fischer
2008-07-23- trim any trailing whitespaceBernhard Reutner-Fischer
2008-05-20Remove automatically generated header when doing make cleanCarmelo Amoroso
2008-04-25Fix some sh4 specific entriesCarmelo Amoroso
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-04-24- fixup asm. No object-code changesBernhard Reutner-Fischer
2006-07-05fix license noticeMike Frysinger
2006-02-14convert to new framework and disable all tests that failMike Frysinger
2006-02-14disable some more unsupported testsMike Frysinger
2006-02-14grab from glibcMike Frysinger
2006-02-14sync with glibcMike Frysinger
2006-02-14err, sorry for the noise, but rename back as glibc uses test-ildoubl.cMike Frysinger
2006-02-14rename fileMike Frysinger
2005-07-01make test output nicer so its easier to go through a log of `make -s` and ↵Mike Frysinger
find out what works/fails
2005-07-01remove old depend on Config and make it so that a test failure aborts the ↵Mike Frysinger
make process
2005-06-30remove unused variableMike Frysinger
2005-06-29simplify TESTDIR setting and touchupMike Frysinger
2005-02-12no more cvsMike Frysinger
2004-01-02Do not make tests depend on CC, since we no longer build a wrapper.Eric Andersen
2003-10-18Peter Kjellerstedt writes:Eric Andersen
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).
2003-01-23Update tests to be somewhat consistant with the rest of the worldEric Andersen
2002-05-09Rework the math library tests per the glibc math test code, withEric Andersen
many unsupported tests disabled for the moment. -Erik