aboutsummaryrefslogtreecommitdiff
path: root/math/gen-libm-test.pl
AgeCommit message (Collapse)AuthorFilesLines
2014-01-27Let gen-libm-test.pl find itself when run outside source directoryAndreas Schwab1-2/+3
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae1-1/+1
2013-12-19Disable libm-test test name beautification for M_* constants.Joseph Myers1-17/+0
math/gen-libm-test.pl has code to beautify names of various constants, transforming the source form in libm-test.inc into the version appearing in test names in libm-test-ulps files. This has become decreasingly relevant over time for the M_* constants, first as I changed the test names so only the arguments and not the expected results appeared in them, then as tests have moved to auto-libm-test-* so that automatically generated hex float constants get used instead of M_* in test inputs. This patch removes the beautification for all M_* constants. Tested x86_64 and x86 and ulps updated accordingly. Even the one case where this affected the name in the ulps files will disappear once complex function tests are moved to auto-libm-test-*. * math/gen-libm-test.pl (%beautify): Remove M_* constants. * sysdeps/i386/fpu/libm-test-ulps: Update. * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2013-11-29Start generating libm tests automatically with MPFR.Joseph Myers1-4/+181
2013-11-16Test signs of NaNs in libm-test.inc where appropriate.Joseph Myers1-1/+1
2013-11-16Add libm-test support for ignored return value, add more lrint / llrint / ↵Joseph Myers1-6/+35
lround / llround tests.
2013-11-16Replace libm-test.inc TEST_INLINE conditionals with NO_TEST_INLINE flag.Joseph Myers1-1/+1
2013-05-24Remove libm-test START_DATA and END_DATA.Joseph Myers1-8/+0
2013-05-24Make libm-test START and END into ordinary macros.Joseph Myers1-28/+0
2013-05-22Don't include function names in test data in generated libm-test.c.Joseph Myers1-15/+12
2013-05-22Don't include expected results in libm-test test names.Joseph Myers1-4/+1
2013-05-19Handle sincos with generic libm-test logic.Joseph Myers1-34/+2
2013-05-19Simplify gen-libm-test.pl handling of tests with extra outputs.Joseph Myers1-65/+17
2013-05-18Make libm-test look up ulps by name at runtime.Joseph Myers1-90/+71
2013-05-17Simplify libm-test extra-output initialization.Joseph Myers1-4/+4
2013-05-16Remove libm-test support for TEST_* inside functions.Joseph Myers1-72/+19
2013-05-12Convert TEST_c_c tests from code to data.Joseph Myers1-2/+2
2013-05-10Start converting libm tests from code to data.Joseph Myers1-23/+78
2013-05-08Move some libm-test logic for running tests from gen-libm-test.pl to ↵Joseph Myers1-75/+80
libm-test.inc.
2013-05-06Initialize x in frexp, modf, remqou tests.Joseph Myers1-0/+3
2013-05-04Remove unused libm-test expected-failure mechanism.Joseph Myers1-61/+5
2013-04-29Integrate errno testing better in libm-test.inc.Joseph Myers1-1/+1
2013-04-02New <math.h> macro named issignaling to check for a signaling NaN (sNaN).Thomas Schwinge1-1/+1
It is based on draft TS 18661 and currently enabled as a GNU extension.
2013-03-21libm-test: Properly wrap blocks consisting of several statements.Thomas Schwinge1-8/+14
2013-03-15Better distinguish between NaN/qNaN/sNaN.Thomas Schwinge1-1/+1
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers1-1/+1
2012-10-09Make libm-test.inc test comparison macros.Joseph Myers1-1/+3
2012-10-08Improve libm test coverage of classification macros / functions.Joseph Myers1-1/+1
2012-05-24Don't include exceptions in libm-test-ulps test names.Joseph Myers1-23/+0
2012-05-24Test underflow exceptions in libm-test.inc.Joseph Myers1-0/+6
2012-03-20Test for overflow exceptions in libm-test.inc.Joseph Myers1-1/+3
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert1-3/+2
2006-08-13[BZ #2832, BZ #2987]Ulrich Drepper1-3/+5
2006-06-08 Joseph Myers <jsm28@gcc.gnu.org> [BZ #2832] * math/gen-libm-test.pl (clean_up_number): Do not remove trailing 0s from integers. 2006-08-13 Ulrich Drepper <drepper@redhat.com> [BZ #2987] * sysdeps/unix/sysv/linux/clock_settime.c: Add code to use syscall for CPU clocks. * sysdeps/unix/clock_settime.c: Add support for platform-specific setting of CPU clocks.
2006-03-16[BZ #2466]Roland McGrath1-5/+6
* math/gen-libm-test.pl (parse_args): Take function name for pretty output as an argument. (generate_testfile): Pass it the name given in the START macro. [BZ #2466] * math/libm-test.inc (llrint_test, llround_test): Fix last change to protect large-precision cases with [LDBL_MANT_DIG > 100]. (llrint_test_tonearest, llrint_test_towardzero): Likewise. (llrint_test_downward, llrint_test_upward): Likewise. 2006-03-15 Steven Munroe <sjmunroe@us.ibm.com> Alan Modra <amodra@bigpond.net.au> [BZ #2466] * math/libm-test.inc (llrint_test, llround_test) [TEST_LDOUBLE]: Add new test values. (llrint_test_tonearest, llrint_test_towardzero, llrint_test_downward, llrint_test_upward): New functions. (main): Call them. * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Handle rounding that spans doubles in IBM long double format. * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c (__llroundl): Likewise. * sysdeps/powerpc/powerpc64/fpu/s_llrintl.S: Removed. * sysdeps/powerpc/powerpc64/fpu/s_llroundl.S: Removed. * sysdeps/powerpc/powerpc64/fpu/s_lrintl.S: Removed. * sysdeps/powerpc/powerpc64/fpu/s_lroundl.S: Removed. 2006-03-16 Roland McGrath <roland@redhat.com>
2004-12-22(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.Ulrich Drepper1-11/+8
2007-07-122.5-18.1Jakub Jelinek1-8/+11
2001-07-06Update to LGPL v2.1.Andreas Jaeger1-9/+8
2001-07-06 Paul Eggert <eggert@twinsun.com> * manual/argp.texi: Remove ignored LGPL copyright notice; it's not appropriate for documentation anyway. * manual/libc-texinfo.sh: "Library General Public License" -> "Lesser General Public License". 2001-07-06 Andreas Jaeger <aj@suse.de> * All files under GPL/LGPL version 2: Place under LGPL version 2.1.
2000-08-30(parse_ulps): Remove extra \.Andreas Jaeger1-1/+1
1999-10-25Update.Ulrich Drepper1-6/+14
1999-10-25 Thorsten Kukuk <kukuk@suse.de> * md5-crypt/md5.h: Remove prototypes for public interface. md5 is used only internal. * md5-crypt/md5-crypt.c: Use internal names for md5 functions, remove weak alias for public names. * md5-crypt/md5.c: Remove weak aliase. 1999-10-25 Andreas Jaeger <aj@suse.de> * math/README.libm-test: New file, documents libm-test.inc. 1999-10-25 Andreas Jaeger <aj@suse.de> * math/gen-libm-test.pl: Only generate a new ulps file when -n is given. (print_ulps_file): Fix loops to not read @tests and @functions since those are not initialized with -n now. (parse_ulps): Set $results{..}{"kind"}.
1999-10-25Update.Ulrich Drepper1-18/+17
1999-10-25 Andreas Jaeger <aj@suse.de> * math/gen-libm-test.pl (parse_ulps): Ignore 0 has ulp. * math/libm-test.inc (check_float_internal): Don't print ulps for wrong sign of zero.
1999-10-20Update.Ulrich Drepper1-60/+184
1999-10-20 Andreas Jaeger <aj@suse.de> * math/libm-test.inc: Rewrite to allow different deltas for real and imaginary part of complex functions. * math/gen-libm-test.pl: Likewise.
1999-10-20Update.Ulrich Drepper1-1/+1
1999-10-19 Ulrich Drepper <drepper@cygnus.com> * sysdeps/i386/fpu/s_nextafterl.c: Add __nextafterl and nextafterl aliases. * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Don't handle -Inf special. * sysdeps/ieee754/flt-32/e_gammaf_r.c (__ieee754_gammaf_r): Check for -Inf and return NaN. * math/gen-libm-test.pl: Fix program name in help message. * math/libm-test.inc (check_complex): It's Imaginary, not Complex. * math/libm-test.inc (gamma_test): Result of gamma(-inf) is +inf. * sysdeps/i386/Implies: Correct order of libm directories.
1999-10-19Update.Ulrich Drepper1-13/+15
1999-10-19 Andreas Jaeger <aj@suse.de> * include/bits/ipc.h: Remove K&R compatibility. * include/libintl.h: Likewise. * include/math.h: Likewise. * include/mntent.h: Likewise * include/netdb.h: Likewise. * include/pwd.h: Likewise. * include/sched.h: Likewise. * include/shadow.h: Likewise * include/stdlib.h: Likewise. * include/sys/file.h: Likewise. * include/sys/gmon.h: Likewise. * include/sys/ioctl.h: Likewise. * include/sys/mman.h: Likewise. * include/sys/resource.h: Likewise. * include/sys/socket.h: Likewise. * include/sys/stat.h: Likewise. * include/sys/sysinfo.h: Likewise. * include/sys/time.h: Likewise. * include/sys/times.h: Likewise. * include/sys/uio.h: Likewise. * include/sys/wait.h: Likewise. * include/termios.h: Likewise. * include/time.h: Likewise. * include/ulimit.h: Likewise. * include/utmp.h: Likewise. * include/wchar.h: Likewise. * include/wctype.h: Likewise. 1999-10-19 Andreas Jaeger <aj@suse.de> * math/libm-test.inc: Remove one K&R compatibility. (main): Enable nexttoward_test. * math/gen-libm-test.pl (output_ulps): Output name of Ulps file to libm-test-ulps.h; pretty print output a bit. 1999-10-19 Andreas Jaeger <aj@suse.de> * iconv/iconv_prog.c (main): Set exit value in case that reading from stdin failed [PR libc/1404].
1999-10-19Update.Ulrich Drepper1-0/+606
1999-10-18 Andreas Jaeger <aj@suse.de> Added improved math testsuite: * math/libm-test.inc: New file, contains all tests from libm-test.c but in a different form. * math/libm-test.c: Removed. * sysdeps/generic/libm-test-ulps: New file: Fallback ulps file. * math/gen-libm-test.pl: New file: Preprocessor. * math/test-double.c: Adopted to new testsuite. * math/test-idouble.c: Likewise. * math/test-float.c: Likewise. * math/test-ifloat.c: Likewise. * math/test-ldouble.c: Likewise. * math/test-ildoubl.c: Likewise. * math/Makefile: Added rules to generate new suite.