summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib/msun
Commit message (Collapse)AuthorAgeFilesLines
* Integrate the remaining tools/regression/lib/msun testcases into thengie2015-12-2012-2025/+0
| | | | | | | | FreeBSD test suite under lib/msun/tests MFC after: 3 weeks X-MFC with: r292328 Sponsored by: EMC / Isilon Storage Division
* Skip the testcases on i386 (all the assertions fail) [*]ngie2015-12-201-2/+25
| | | | | | | | | | | Also, don't compile the ldexpl(3) testcases on platforms that don't support the libcall (technically only x86 right now). This makes this test buildable on arm*/mips*/powerpc* PR: 205449 [*] MFC after: 1 week Tested on: stable/10 (amd64/i386), head (amd64/i386) Sponsored by: EMC / Isilon Storage Division
* Initialize j so it doesn't print out a garbage indexngie2015-12-201-1/+3
| | | | | | | | Use it consistently instead of i in the first loop MFC after: 3 days X-MFC with: 292492 Sponsored by: EMC / Isilon Storage Division
* Skip infinities testcases that fail assertions on amd64 only on CURRENTngie2015-12-201-0/+5
| | | | | | PR: 205448 MFC after: never Sponsored by: EMC / Isilon Storage Division
* Don't run test-fma on i386ngie2015-12-201-0/+6
| | | | | | | | | It completely fails all assertions on i386 on both stable/9 and stable/10 PR: 205448 MFC after: 1 week X-MFC to: stable/10 Sponsored by: EMC / Isilon Storage Division
* - Use nitems instead of handrolling the macrongie2015-12-201-10/+17
| | | | | | | | - Use a separate variable for tracking the testcase count instead of hardcoding the offset for the testcases MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
* Disable test-ctrig.t testcases which fail assertions on i386 [*]ngie2015-12-201-1/+12
| | | | | | | | | | | | Also, don't compile the exp2l(3) testcases on platforms that don't support the libcall (technically only x86 right now). This makes this test buildable on arm*/mips*/powerpc* Tested on: stable/10 (amd64/i386), head (amd64/i386) PR: 205446 [*] MFC after: 1 week X-MFC to: stable/10 Sponsored by: EMC / Isilon Storage Division
* Disable test-ctrig.t testcases which fail assertions on i386ngie2015-12-201-0/+2
| | | | | | | | Tested on: stable/10 (amd64/i386), head (amd64/i386) PR: 205446 MFC after: 1 week X-MFC to: stable/10 Sponsored by: EMC / Isilon Storage Division
* Update the test list after r292328ngie2015-12-201-2/+2
| | | | | | Add test-invtrig to the list of tests Sponsored by: EMC / Isilon Storage Division
* Integrate a number of testcases from tools/regression/lib/msunngie2015-12-1628-3538/+3
| | | | | | | | | | | | | | into the FreeBSD test suite There's no functional change with these testcases; they're purposely being left in TAP format for the time being Other testcases which crash on amd64/i386 as-is have not been integrated yet (they need to be retested on a later version of CURRENT, as I haven't used i386 in some time) MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
* Use fabsl instead of fabs to mute -Wabsolute-value warnings from clangngie2015-12-161-4/+4
| | | | | | | because `nums[]` is an array of long doubles MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Fix test-fenv:test_dfl_env when run on some amd64 CPUsngie2015-10-141-0/+27
| | | | | | | | | | | | | | | | | | | | Compare the fields that the AMD [1] and Intel [2] specs say will be set once fnstenv returns. Not all amd64 capable processors zero out the env.__x87.__other field (example: AMD Opteron 6308). The AMD64/x64 specs aren't explicit on what the env.__x87.__other field will contain after fnstenv is executed, so the values in env.__x87.__other could be filled with arbitrary data depending on how the CPU-specific implementation of fnstenv. 1. http://support.amd.com/TechDocs/26569_APM_v5.pdf 2. http://www.intel.com/Assets/en_US/PDF/manual/253666.pdf Discussed with: kib, Anton Rang <anton.rang@isilon.com> Reviewed by: Daniel O'Connor <darius@dons.net.au> (earlier patch; pre-generalization) MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Reported by: Bill Morchin <wmorchin@isilon.com>
* - Replace N(a)/N(i)/N(T)/LEN(a)/ARRAY_SIZE(a) with nitems()rodrigc2015-08-294-19/+17
| | | | | | | | - Add missing <err.h> for err() and <sys/sysctl.h> for sysctlbyname() - NULL -> 0 for 5th parameter of sysctlbyname() Submitted by: Andriy Voskoboinyk <s3erios@gmail com> Differential Revision: https://reviews.freebsd.org/D3442
* Add diagnostic printfs and disable test # 4 on i386ngie2014-09-101-0/+9
| | | | | | | | Reviewed by: jmmv, rpaulo MFC after: 3 days Phabric: D749 PR: 191676 Sponsored by: EMC / Isilon Storage Division
* Expand the tests structure in test_small(..) to workaround thengie2014-09-091-19/+14
| | | | | | | | | "initializer not constant" warning with gcc Approved by: jmmv (mentor) MFC after: 3 days Phabric: D744 Sponsored by: EMC / Isilon Storage Division
* Be ANSI-C compliant when defining CX_LIMITED_RANGE #pragmangie2014-09-092-2/+2
| | | | | | | | | This mutes warnings with clang Approved by: rpaulo (mentor) Reviewed by: das, kargl (both as part of a larger patch) Phabric: D742 Sponsored by: EMC / Isilon Storage Division
* Fix some bugs in the complex trig tests so that they test both doubledas2013-06-101-33/+68
| | | | and float precision properly.
* Add more tests for log functions. A few are commented out because thedas2013-06-031-1/+114
| | | | | | long double versions don't pass yet. (They are rather nit-picky cases, so there's ongoing discussion with Bruce about whether it is worth the performance cost.)
* Factor out some common code from the libm tests. This is a bit messydas2013-06-0215-628/+412
| | | | | | | | because different tests have different ideas about what it means to be "close enough" to the right answer, depending on the properties of the function being tested. In the process, I fixed some warnings and added a few more 'volatile' hacks, which are sufficient to make all the tests pass at -O2 with clang.
* Fix some harmless bugs in a test.das2013-05-301-2/+2
|
* Basic tests for complex inverse trig and hyperbolic functions.das2013-05-302-1/+444
|
* Fix cexp regression tests that have an infinite real part. The signs of thetijl2013-05-281-12/+26
| | | | | | | | result depend on the cosine and sine of the imaginary part. Small values are used in the new tests such that cosine and sine are well defined. Reviewed by: das
* Fix some regressions caused by the switch from gcc to clang. The fixesdas2013-05-271-19/+25
| | | | | | | | | | are workarounds for various symptoms of the problem described in clang bugs 3929, 8100, 8241, 10409, and 12958. The regression tests did their job: they failed, someone brought it up on the mailing lists, and then the issue got ignored for 6 months. Oops. There may still be some regressions for functions we don't have test coverage for yet.
* Add some tests from PR 166463. Also make sure that all of the tests,das2012-04-071-7/+33
| | | | | old and new, check the sign bits of both the remainder and the quotient.
* Fix a test that doesn't work on architectures where long double is nodas2012-01-141-0/+2
| | | | wider than double. Thanks to Ian Lepore for catching the bug.
* Add regression tests for modf{,f,l}().das2011-10-211-26/+108
|
* Tests for complex trig and hyperbolic functions.das2011-10-213-1/+552
|
* Tests for cancellation in fma(). Also include more tests for 128-bitdas2011-10-211-3/+63
| | | | | long doubles. Thanks for clusteradm (simon) for making the needed hardware available.
* Add some tests for corner cases of log() in unusual rounding modes.das2011-10-151-2/+29
| | | | I wrote these ages ago, but they've been failing until now.
* Add some tests for double-rounding bugs in fma().das2011-10-151-1/+54
|
* Add some tests for cexp() and cexpf(). (I need to clean up all ofdas2011-03-073-1/+391
| | | | | these tests some day, but in the mean time, they're a useful sanity check for future changes.)
* Work around gcc constant folding bugs.das2010-12-061-1/+6
|
* signbit() returns nonzero for negative arguments, but we shouldn't assumedas2010-12-066-6/+8
| | | | that it always returns the same nonzero value.
* Fix some warnings.das2010-12-051-3/+3
|
* Add regression tests for logarithmic functions in the math library.das2010-12-053-1/+169
|
* Add some basic regression tests for nearbyint().das2010-12-033-1/+111
|
* Add tests for conj{,f,l}() that I wrote some time ago. These test thedas2009-01-313-1/+169
| | | | versions in libm, not the gcc builtins.
* Test that the result is correctly rounded when |y/x| is huge.das2008-08-021-16/+9
|
* Add some tests for acos*(), asin*(), atan*(), and atan2*().das2008-07-313-1/+504
|
* Add regression tests for fmin{,f,l} and fmax{,f,l}.das2008-07-033-1/+161
| | | | | | | | I wrote these to test amd64 asm functions that used maxss, maxsd, minss, and minsd, but it turns out that those instructions don't handle NaNs and signed zero in the same way as fmin() and fmax() are required to, so we're stuck with the C versions for now.
* Add some tests for fma(), fmaf(), and fmal().das2008-04-033-1/+424
|
* Test remainderl() and remquol() as well.das2008-03-301-4/+34
|
* Add some minimal tests for csqrtl().das2008-03-301-59/+88
|
* Don't run tests that assume <= 64-bit precision on machines with quaddas2008-03-021-8/+20
| | | | precision.
* Some basic regression tests for {sin,cos,tan}{,f,l}().das2008-02-183-1/+293
|
* There are 3 tests here, not 2.das2008-02-171-1/+1
|
* expm1(-big) generates an inexact exception but not underflow.das2008-01-181-1/+1
|
* Add some regression tests for libm's exponential functions. Thesedas2008-01-183-1/+181
| | | | | | | mostly just test corner cases rather than accuracy. Some of the tests don't pass right now if you compile libm at -O2 due to gcc constant-folding some things that it shouldn't. I'll fix that shortly.
* Tests for lrintl() and llrintl(). I didn't add anything speciallydas2008-01-141-5/+22
| | | | | tailored for the long double format; instead, I just modified the existing tests to test lrintl() and llrintl() as well.
* Don't try the long double tests on i386. Our reduced precisiondas2007-12-161-1/+1
| | | | can cause them to fail.
OpenPOWER on IntegriCloud