glibc/math
Andreas Jaeger 0be196adda Use -frounding-math for math testsuite
We should tell GCC that we manipulate the rounding mode and
therefore add -frounding-math to these files that call fesetround.
2012-05-02 16:33:18 +02:00
..
bits Don't use long double *_finite functions if no long double math 2012-04-28 22:21:53 +02:00
machine
atest-exp2.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
atest-exp.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
atest-sincos.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
basic-test.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
bug-nextafter.c
bug-nexttoward.c
bug-tgmath1.c
cabs.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
cabsf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
cabsl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
carg.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
cargf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
cargl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
cimag.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
cimagf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
cimagl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
complex.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
conj.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
conjf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
conjl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
creal.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
crealf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
creall.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
divtc3.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
e_acoshl.c
e_acosl.c
e_asinl.c
e_atan2l.c
e_atanhl.c
e_coshl.c
e_exp2l.c Fix exp2l inaccuracy (bug 13824). 2012-03-22 12:55:19 +00:00
e_exp10.c Fix exp10 spurious overflows (bug 13924). 2012-04-30 09:37:01 +00:00
e_exp10f.c Fix exp10 spurious overflows (bug 13924). 2012-04-30 09:37:01 +00:00
e_exp10l.c Fix exp10 spurious overflows (bug 13924). 2012-04-30 09:37:01 +00:00
e_expl.c
e_fmodl.c
e_gammal_r.c
e_hypotl.c
e_j0l.c
e_j1l.c
e_jnl.c
e_lgammal_r.c
e_log2l.c
e_log10l.c
e_logl.c
e_powl.c
e_rem_pio2l.c
e_scalb.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
e_scalbf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
e_scalbl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
e_sinhl.c
e_sqrtl.c
fclrexcpt.c Fix fenv.h fallback returns (bug 14027). 2012-04-27 13:54:09 +00:00
fedisblxcpt.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
feenablxcpt.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
fegetenv.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
fegetexcept.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
fegetround.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
feholdexcpt.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
fenv.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
fesetenv.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
fesetround.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
feupdateenv.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
fgetexcptflg.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
fpu_control.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
fraiseexcpt.c Fix fenv.h fallback returns (bug 14027). 2012-04-27 13:54:09 +00:00
fsetexcptflg.c Fix fenv.h fallback returns (bug 14027). 2012-04-27 13:54:09 +00:00
ftestexcept.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
gen-libm-test.pl Test for overflow exceptions in libm-test.inc. 2012-03-20 10:58:04 +00:00
ieee-math.c
k_cosl.c
k_rem_pio2l.c
k_sincosl.c
k_sinl.c
k_tanl.c
libm-test.inc Fix nexttoward bugs (bugs 2550, 2570). 2012-05-01 15:37:43 +00:00
Makefile Use -frounding-math for math testsuite 2012-05-02 16:33:18 +02:00
math.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
multc3.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
README.libm-test
s_asinhl.c
s_atanl.c
s_cacos.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_cacosf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_cacosh.c Fix signs of zeros from casinh, cacosh etc. (bug 10716). 2012-03-07 15:15:19 +00:00
s_cacoshf.c Fix signs of zeros from casinh, cacosh etc. (bug 10716). 2012-03-07 15:15:19 +00:00
s_cacoshl.c Fix signs of zeros from casinh, cacosh etc. (bug 10716). 2012-03-07 15:15:19 +00:00
s_cacosl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_casin.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_casinf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_casinh.c Fix signs of zeros from casinh, cacosh etc. (bug 10716). 2012-03-07 15:15:19 +00:00
s_casinhf.c Fix signs of zeros from casinh, cacosh etc. (bug 10716). 2012-03-07 15:15:19 +00:00
s_casinhl.c Fix signs of zeros from casinh, cacosh etc. (bug 10716). 2012-03-07 15:15:19 +00:00
s_casinl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_catan.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_catanf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_catanh.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_catanhf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_catanhl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_catanl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_cbrtl.c
s_ccos.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_ccosf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_ccosh.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_ccoshf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_ccoshl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_ccosl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_cexp.c Fix cexp overflow (bug 13892). 2012-03-22 19:38:09 +00:00
s_cexpf.c Fix cexp overflow (bug 13892). 2012-03-22 19:38:09 +00:00
s_cexpl.c Fix cexp overflow (bug 13892). 2012-03-22 19:38:09 +00:00
s_clog10.c Fix clog overflow/underflow (bug 13629). 2012-03-19 20:14:26 +00:00
s_clog10f.c Fix clog overflow/underflow (bug 13629). 2012-03-19 20:14:26 +00:00
s_clog10l.c Fix clog overflow/underflow (bug 13629). 2012-03-19 20:14:26 +00:00
s_clog.c Fix clog overflow/underflow (bug 13629). 2012-03-19 20:14:26 +00:00
s_clogf.c Fix clog overflow/underflow (bug 13629). 2012-03-19 20:14:26 +00:00
s_clogl.c Fix clog overflow/underflow (bug 13629). 2012-03-19 20:14:26 +00:00
s_cpow.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_cpowf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_cpowl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_cproj.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_cprojf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_cprojl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_csin.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_csinf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_csinh.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_csinhf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_csinhl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_csinl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_csqrt.c Fix csqrt overflow/underflow (bug 13841). 2012-03-14 11:53:32 +00:00
s_csqrtf.c Fix csqrt overflow/underflow (bug 13841). 2012-03-14 11:53:32 +00:00
s_csqrtl.c Fix csqrt overflow/underflow (bug 13841). 2012-03-14 11:53:32 +00:00
s_ctan.c Fix ctan, ctanh overflow (bug 11521). 2012-04-09 22:31:35 +00:00
s_ctanf.c Fix ctan, ctanh overflow (bug 11521). 2012-04-09 22:31:35 +00:00
s_ctanh.c Fix ctan, ctanh overflow (bug 11521). 2012-04-09 22:31:35 +00:00
s_ctanhf.c Fix ctan, ctanh overflow (bug 11521). 2012-04-09 22:31:35 +00:00
s_ctanhl.c Fix ctan, ctanh overflow (bug 11521). 2012-04-09 22:31:35 +00:00
s_ctanl.c Fix ctan, ctanh overflow (bug 11521). 2012-04-09 22:31:35 +00:00
s_erfl.c
s_expm1l.c
s_fdim.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_fdimf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_fdiml.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_fma.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_fmaf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_fmal.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_fmax.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_fmaxf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_fmaxl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_fmin.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_fminf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_fminl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_ldexp.c Remove __STDC__ conditionals from libm. 2012-01-27 17:29:45 +00:00
s_ldexpf.c Remove __STDC__ conditionals from libm. 2012-01-27 17:29:45 +00:00
s_ldexpl.c Remove __STDC__ conditionals from libm. 2012-01-27 17:29:45 +00:00
s_log1pl.c
s_nan.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_nanf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_nanl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
s_nextafter.c Remove __STDC__ conditionals from libm. 2012-01-27 17:29:45 +00:00
s_nexttowardf.c Fix nexttoward bugs (bugs 2550, 2570). 2012-05-01 15:37:43 +00:00
s_nexttowardl.c
s_significand.c Remove __STDC__ conditionals from libm. 2012-01-27 17:29:45 +00:00
s_significandf.c Remove __STDC__ conditionals from libm. 2012-01-27 17:29:45 +00:00
s_significandl.c Remove __STDC__ conditionals from libm. 2012-01-27 17:29:45 +00:00
s_tanhl.c
setfpucw.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
t_sincosl.c
test-double.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
test-fenv.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
test-float.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
test-fpucw.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
test-idouble.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
test-ifloat.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
test-ildoubl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
test-ldouble.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
test-matherr.c
test-misc.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
test-powl.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
test-tgmath2.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
test-tgmath-int.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
test-tgmath-ret.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
test-tgmath.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
tgmath.h Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
tst-CMPLX2.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
tst-CMPLX.c Include <stdio.h> in math/tst-CMPLX.c. 2012-02-03 00:13:15 +00:00
tst-definitions.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
Versions
w_acos.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_acosf.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_acosh.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_acoshf.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_acoshl.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_acosl.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_asin.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_asinf.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_asinl.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_atan2.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
w_atan2f.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
w_atan2l.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_atanh.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_atanhf.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_atanhl.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_cosh.c
w_coshf.c
w_coshl.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_drem.c
w_dremf.c
w_dreml.c
w_exp2.c Fix missing exp2 overflow exception (bug 13871). 2012-03-21 12:17:26 +00:00
w_exp2f.c Fix missing exp2 overflow exception (bug 13871). 2012-03-21 12:17:26 +00:00
w_exp2l.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_exp10.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
w_exp10f.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
w_exp10l.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_expl.c
w_fmod.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
w_fmodf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
w_fmodl.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_hypot.c
w_hypotf.c
w_hypotl.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_ilogb.c Fix ilogb exception and errno (bug 6794) 2012-04-17 22:12:53 +02:00
w_ilogbf.c Fix ilogb exception and errno (bug 6794) 2012-04-17 22:12:53 +02:00
w_ilogbl.c Fix ilogb exception and errno (bug 6794) 2012-04-17 22:12:53 +02:00
w_j0.c Disable Bessel function TLOSS errors in POSIX mode. 2012-03-16 20:08:02 +00:00
w_j0f.c Disable Bessel function TLOSS errors in POSIX mode. 2012-03-16 20:08:02 +00:00
w_j0l.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_j1.c Disable Bessel function TLOSS errors in POSIX mode. 2012-03-16 20:08:02 +00:00
w_j1f.c Disable Bessel function TLOSS errors in POSIX mode. 2012-03-16 20:08:02 +00:00
w_j1l.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_jn.c Disable Bessel function TLOSS errors in POSIX mode. 2012-03-16 20:08:02 +00:00
w_jnf.c Disable Bessel function TLOSS errors in POSIX mode. 2012-03-16 20:08:02 +00:00
w_jnl.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_lgamma_r.c
w_lgamma.c
w_lgammaf_r.c
w_lgammaf.c
w_lgammal_r.c
w_lgammal.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_log2.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_log2f.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_log2l.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_log10.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_log10f.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_log10l.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_log.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_logf.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_logl.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_pow.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
w_powf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
w_powl.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_remainder.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
w_remainderf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
w_remainderl.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_scalb.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
w_scalbf.c Replace FSF snail mail address with URLs. 2012-02-09 23:18:22 +00:00
w_scalbl.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_sinh.c
w_sinhf.c
w_sinhl.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_sqrt.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_sqrtf.c Use non-signaling floating-point comparisons in math functions. 2012-02-19 11:20:18 +01:00
w_sqrtl.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00
w_tgamma.c
w_tgammaf.c
w_tgammal.c Avoid overflows from long double functions using __kernel_standard. 2012-03-28 09:32:12 +00:00

README for libm-test math test suite
====================================

The libm-test math test suite tests a number of function points of
math functions in the GNU C library.  The following sections contain a
brief overview.  Please note that the test drivers and the Perl script
"gen-libm-test.pl" have some options.  A full list of options is
available with --help (for the test drivers) and -h for
"gen-libm-test.pl".


What is tested?
===============
The tests just evaluate the functions at specified points and compare
the results with precomputed values and the requirements of the ISO
C99 standard.

Besides testing the special values mandated by IEEE 754 (infinities,
NaNs and minus zero), some more or less random values are tested.

Files that are part of libm-test
================================

The main file is "libm-test.inc".  It is platform and floating point
format independent.  The file must be preprocessed by the Perl script
"gen-libm-test.pl".  The results are "libm-test.c" and a file
"libm-test-ulps.h" with platform specific deltas.

The test drivers test-double.c, test-float.c, test-ldouble.c test the
normal double, float and long double implementation of libm.  The test
drivers with an i in it (test-idouble.c, test-ifloat.c,
test-ildoubl.c) test the corresponding inline functions (where
available - otherwise they also test the real functions in libm).

"gen-libm-test.pl" needs a platform specific files with ULPs (Units of
Last Precision).  The file is called "libm-test-ulps" and lives in
platform specific sysdep directory.

How can I generate "libm-test-ulps"?
====================================

The test drivers have an option "-u" to output an unsorted list of all
epsilons that the functions have.  The output can be read in directly
but it's better to pretty print it first.  "gen-libm-test.pl"  has an option
to generate a pretty-printed and sorted new ULPs file from the output
of the test drivers.

To generate a new "libm-test-ulps" file, first remove "ULPs" file in the
current directory, then you can execute for example:
test-double -u --ignore-max-ulp=yes
This generates a file "ULPs" with all double ULPs in it, ignoring any
previous calculated ULPs.
Now generate the ULPs for all other formats, the tests will be appending
the data to the "ULPs" file.  As final step run "gen-libm-test.pl" with the
file as input and ask to generate a pretty printed output in the file "NewUlps":
  gen-libm-test.pl -u ULPs -n

Now you can rename "NewUlps" to "libm-test-ulps" and move it into
sysdeps.

Contents of libm-test-ulps
==========================
Since libm-test-ulps can be generated automatically, just a few
notes.  The file contains lines for single tests, like:
Test "cos (pi/2) == 0":
float:  1

and lines for maximal errors of single functions, like:
Function "yn":
idouble:  6.0000

The keywords are float, ifloat, double, idouble, ldouble and ildouble
(the prefix i stands for inline).  You can also specify known
failures, e.g.:

Test "cos (pi/2) == 0":
float:  1
float: fail

Adding tests to libm-test.inc
=============================

The tests are evaluated by a set of special test macros.  The macros
start with "TEST_" followed by a specification the input values, an
underscore and a specification of the output values.  As an example,
the test macro for a function with input of type FLOAT (FLOAT is
either float, double, long double) and output of type FLOAT is
"TEST_f_f".  The macro's parameter are the name of the function, the
input parameter, output parameter and optionally one exception
parameter.

The accepted parameter types are:
- "f" for FLOAT
- "b" for boolean - just tests if the output parameter evaluates to 0
  or 1 (only for output).
- "c" for complex.  This parameter needs two values, first the real,
  then the imaginary part.
- "i" for int.
- "l" for long int.
- "L" for long long int.
- "F" for the address of a FLOAT (only as input parameter)
- "I" for the address of an int (only as input parameter)

Some functions need special handling.  For example gamma sets the
global variable signgam and frexp takes an argument to &int.  This
special treatment is coded in "gen-libm-test.pl" and used while
parsing "libm-test.inc".