diff options
author | Joseph Myers <joseph@codesourcery.com> | 2014-03-05 15:02:38 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2014-03-05 15:02:38 +0000 |
commit | e6b6a85705be16373fb3f78ef998edc62150499c (patch) | |
tree | 067f2c96d39062ad178f630e42a30322ae193744 /sysdeps/m68k/coldfire | |
parent | 6539be6e48912892997eea6afc21883ba1fb8714 (diff) | |
download | glibc-e6b6a85705be16373fb3f78ef998edc62150499c.tar glibc-e6b6a85705be16373fb3f78ef998edc62150499c.tar.gz glibc-e6b6a85705be16373fb3f78ef998edc62150499c.tar.bz2 glibc-e6b6a85705be16373fb3f78ef998edc62150499c.zip |
Don't include individual test ulps in libm-test-ulps.
As recently discussed
<https://sourceware.org/ml/libc-alpha/2014-02/msg00670.html>, it
doesn't seem particularly useful for libm-test-ulps files to contain
huge amounts of data on ulps for individual tests; just the global
maximum observed ulps for each function, together with the
verification of exceptions, errno and special results such as
infinities and NaNs for each test, suffices to verify that a
function's behavior on the given test inputs is within the expected
accuracy. Removing this data reduces source tree churn caused by
updates to these files when libm tests are added, and reduces the
frequency with which testsuite additions actually need libm-test-ulps
changes at all.
Accordingly, this patch removes that data, so that individual tests
get checked against the global bounds for the given function and only
generate an error if those are exceeded. Tested x86_64 (including
verifying that if an ulps value is artificially reduced, the tests do
indeed fail as they should and "make regen-ulps" generates the
expected changes).
* math/libm-test.inc (struct ulp_data): Don't refer to ulps for
individual tests in comment.
(libm-test-ulps.h): Don't refer to test_ulps in #include comment.
(prev_max_error): New variable.
(prev_real_max_error): Likewise.
(prev_imag_max_error): Likewise.
(compare_ulp_data): Don't refer to test names in comment.
(find_test_ulps): Remove function.
(find_function_ulps): Likewise.
(find_complex_function_ulps): Likewise.
(init_max_error): Take function name as argument. Look up ulps
for that function.
(print_ulps): Remove function.
(print_max_error): Use prev_max_error instead of calling
find_function_ulps.
(print_complex_max_error): Use prev_real_max_error and
prev_imag_max_error instead of calling find_complex_function_ulps.
(check_float_internal): Take max_ulp parameter instead of calling
find_test_ulps. Don't call print_ulps.
(check_float): Update call to check_float_internal.
(check_complex): Update calls to check_float_internal.
(START): Pass argument to init_max_error.
* math/gen-libm-test.pl (%results): Don't include "kind"
information.
(parse_ulps): Don't handle ulps of individual tests.
(print_ulps_file): Likewise.
(output_ulps): Likewise.
* math/README.libm-test: Update.
* manual/libm-err-tab.pl (parse_ulps): Don't handle ulps of
individual tests.
* sysdeps/aarch64/libm-test-ulps: Remove individual test ulps.
* sysdeps/alpha/fpu/libm-test-ulps: Likewise.
* sysdeps/arm/libm-test-ulps: Likewise.
* sysdeps/i386/fpu/libm-test-ulps: Likewise.
* sysdeps/ia64/fpu/libm-test-ulps: Likewise.
* sysdeps/m68k/coldfire/fpu/libm-test-ulps: Likewise.
* sysdeps/m68k/m680x0/fpu/libm-test-ulps: Likewise.
* sysdeps/microblaze/libm-test-ulps: Likewise.
* sysdeps/mips/mips32/libm-test-ulps: Likewise.
* sysdeps/mips/mips64/libm-test-ulps: Likewise.
* sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
* sysdeps/powerpc/nofpu/libm-test-ulps: Likewise.
* sysdeps/s390/fpu/libm-test-ulps: Likewise.
* sysdeps/sh/libm-test-ulps: Likewise.
* sysdeps/sparc/fpu/libm-test-ulps: Likewise.
* sysdeps/tile/libm-test-ulps: Likewise.
* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
* sysdeps/hppa/fpu/libm-test-ulps: Remove individual test ulps.
Diffstat (limited to 'sysdeps/m68k/coldfire')
-rw-r--r-- | sysdeps/m68k/coldfire/fpu/libm-test-ulps | 592 |
1 files changed, 0 insertions, 592 deletions
diff --git a/sysdeps/m68k/coldfire/fpu/libm-test-ulps b/sysdeps/m68k/coldfire/fpu/libm-test-ulps index 05be5a92b6..fad7f8f068 100644 --- a/sysdeps/m68k/coldfire/fpu/libm-test-ulps +++ b/sysdeps/m68k/coldfire/fpu/libm-test-ulps @@ -1,597 +1,5 @@ # Begin of automatic generation -# atan2 -Test "atan2 (-0.75, -1.0)": -float: 1 -ifloat: 1 -Test "atan2 (0.75, -1.0)": -float: 1 -ifloat: 1 -Test "atan2 (1.390625, 0.9296875)": -float: 1 -ifloat: 1 - -# atanh -Test "atanh (0.75)": -float: 1 -ifloat: 1 - -# cacosh -Test "Imaginary part of: cacosh (-2 - 3 i)": -float: 1 -ifloat: 1 - -# casin -Test "Real part of: casin (0.75 + 1.25 i)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 - -# casinh -Test "Real part of: casinh (-2 - 3 i)": -double: 5 -float: 1 -idouble: 5 -ifloat: 1 -Test "Imaginary part of: casinh (-2 - 3 i)": -double: 3 -float: 6 -idouble: 3 -ifloat: 6 -Test "Real part of: casinh (0.75 + 1.25 i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: casinh (0.75 + 1.25 i)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 - -# catan -Test "Imaginary part of: catan (-2 - 3 i)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 - -# catanh -Test "Real part of: catanh (-2 - 3 i)": -double: 4 -idouble: 4 -Test "Real part of: catanh (0.75 + 1.25 i)": -double: 1 -idouble: 1 - -# cbrt -Test "cbrt (-27.0)": -double: 1 -idouble: 1 -Test "cbrt (0.75)": -double: 1 -idouble: 1 -Test "cbrt (0.9921875)": -double: 1 -idouble: 1 - -# ccos -Test "Imaginary part of: ccos (-2 - 3 i)": -float: 1 -ifloat: 1 -Test "Real part of: ccos (0.75 + 1.25 i)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "Imaginary part of: ccos (0.75 + 1.25 i)": -float: 1 -ifloat: 1 - -# ccosh -Test "Real part of: ccosh (-2 - 3 i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: ccosh (-2 - 3 i)": -float: 1 -ifloat: 1 -Test "Real part of: ccosh (0.75 + 1.25 i)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "Imaginary part of: ccosh (0.75 + 1.25 i)": -float: 1 -ifloat: 1 - -# cexp -Test "Imaginary part of: cexp (-2.0 - 3.0 i)": -float: 1 -ifloat: 1 -Test "Real part of: cexp (0.75 + 1.25 i)": -float: 1 -ifloat: 1 - -# clog -Test "Real part of: clog (0.75 + 1.25 i)": -float: 1 -ifloat: 1 - -# clog10 -Test "Imaginary part of: clog10 (-0 + inf i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: clog10 (-0 - inf i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: clog10 (-2 - 3 i)": -double: 1 -idouble: 1 -Test "Imaginary part of: clog10 (-3 + inf i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: clog10 (-3 - inf i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: clog10 (-inf + 0 i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: clog10 (-inf + 1 i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: clog10 (-inf - 0 i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: clog10 (-inf - 1 i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: clog10 (0 + inf i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: clog10 (0 - inf i)": -float: 1 -ifloat: 1 -Test "Real part of: clog10 (0.75 + 1.25 i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: clog10 (3 + inf i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: clog10 (3 - inf i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: clog10 (inf + inf i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: clog10 (inf - inf i)": -float: 1 -ifloat: 1 - -# cos -Test "cos (M_PI_6l * 2.0)": -double: 1 -idouble: 1 -Test "cos (M_PI_6l * 4.0)": -double: 2 -float: 1 -idouble: 2 -ifloat: 1 - -# cpow -Test "Real part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: cpow (0.75 + 1.25 i, 0.0 + 1.0 i)": -float: 1 -ifloat: 1 -Test "Real part of: cpow (0.75 + 1.25 i, 0.75 + 1.25 i)": -double: 1 -float: 4 -idouble: 1 -ifloat: 4 -Test "Real part of: cpow (0.75 + 1.25 i, 1.0 + 1.0 i)": -double: 2 -float: 3 -idouble: 2 -ifloat: 3 -Test "Real part of: cpow (2 + 3 i, 4 + 0 i)": -double: 1 -float: 4 -idouble: 1 -ifloat: 4 -Test "Imaginary part of: cpow (2 + 3 i, 4 + 0 i)": -float: 2 -ifloat: 2 -Test "Imaginary part of: cpow (e + 0 i, 0 + 2 * M_PIl i)": -double: 2 -float: 2 -idouble: 2 -ifloat: 2 - -# csinh -Test "Imaginary part of: csinh (-2 - 3 i)": -double: 1 -idouble: 1 -Test "Real part of: csinh (0.75 + 1.25 i)": -float: 1 -ifloat: 1 -Test "Imaginary part of: csinh (0.75 + 1.25 i)": -float: 1 -ifloat: 1 - -# csqrt -Test "Real part of: csqrt (-2 + 3 i)": -float: 1 -ifloat: 1 -Test "Real part of: csqrt (-2 - 3 i)": -float: 1 -ifloat: 1 - -# ctan -Test "Imaginary part of: ctan (0.75 + 1.25 i)": -double: 1 -idouble: 1 - -# ctanh -Test "Real part of: ctanh (-2 - 3 i)": -double: 1 -float: 2 -idouble: 1 -ifloat: 2 -Test "Imaginary part of: ctanh (0 + pi/4 i)": -float: 1 -ifloat: 1 -Test "Real part of: ctanh (0.75 + 1.25 i)": -double: 1 -idouble: 1 - -# erf -Test "erf (1.25)": -double: 1 -idouble: 1 - -# erfc -Test "erfc (2.0)": -double: 1 -idouble: 1 -Test "erfc (4.125)": -double: 1 -idouble: 1 - -# exp10 -Test "exp10 (-1)": -double: 2 -float: 1 -idouble: 2 -ifloat: 1 -Test "exp10 (0.75)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "exp10 (3)": -double: 6 -float: 2 -idouble: 6 -ifloat: 2 - -# expm1 -Test "expm1 (0.75)": -double: 1 -idouble: 1 -Test "expm1 (1)": -float: 1 -ifloat: 1 - -# hypot -Test "hypot (-0.7, -12.4)": -float: 1 -ifloat: 1 -Test "hypot (-0.7, 12.4)": -float: 1 -ifloat: 1 -Test "hypot (-12.4, -0.7)": -float: 1 -ifloat: 1 -Test "hypot (-12.4, 0.7)": -float: 1 -ifloat: 1 -Test "hypot (0.7, -12.4)": -float: 1 -ifloat: 1 -Test "hypot (0.7, 12.4)": -float: 1 -ifloat: 1 -Test "hypot (12.4, -0.7)": -float: 1 -ifloat: 1 -Test "hypot (12.4, 0.7)": -float: 1 -ifloat: 1 - -# j0 -Test "j0 (-4.0)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "j0 (0.75)": -float: 1 -ifloat: 1 -Test "j0 (10.0)": -double: 2 -float: 1 -idouble: 2 -ifloat: 1 -Test "j0 (2.0)": -float: 2 -ifloat: 2 -Test "j0 (4.0)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "j0 (8.0)": -float: 1 -ifloat: 1 - -# j1 -Test "j1 (10.0)": -float: 2 -ifloat: 2 -Test "j1 (2.0)": -double: 1 -idouble: 1 -Test "j1 (8.0)": -double: 1 -idouble: 1 - -# jn -Test "jn (0, -4.0)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "jn (0, 0.75)": -float: 1 -ifloat: 1 -Test "jn (0, 10.0)": -double: 2 -float: 1 -idouble: 2 -ifloat: 1 -Test "jn (0, 2.0)": -float: 2 -ifloat: 2 -Test "jn (0, 4.0)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "jn (0, 8.0)": -float: 1 -ifloat: 1 -Test "jn (1, 10.0)": -float: 2 -ifloat: 2 -Test "jn (1, 2.0)": -double: 1 -idouble: 1 -Test "jn (1, 8.0)": -double: 1 -idouble: 1 -Test "jn (10, 0.125)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "jn (10, 0.75)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "jn (10, 10.0)": -double: 4 -float: 3 -idouble: 4 -ifloat: 3 -Test "jn (10, 2.0)": -float: 4 -ifloat: 4 -Test "jn (3, 0.125)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "jn (3, 0.75)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "jn (3, 10.0)": -double: 3 -float: 1 -idouble: 3 -ifloat: 1 -Test "jn (3, 2.0)": -double: 1 -float: 2 -idouble: 1 -ifloat: 2 - -# lgamma -Test "lgamma (0.7)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "lgamma (1.2)": -double: 1 -float: 2 -idouble: 1 -ifloat: 2 - -# log10 -Test "log10 (0.75)": -double: 1 -float: 2 -idouble: 1 -ifloat: 2 -Test "log10 (e)": -float: 1 -ifloat: 1 - -# log1p -Test "log1p (-0.25)": -float: 1 -ifloat: 1 - -# sincos -Test "sincos (M_PI_6l*2.0) extra output 1": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "sincos (M_PI_6l*2.0) extra output 2": -double: 1 -idouble: 1 -Test "sincos (pi/6) extra output 2": -float: 1 -ifloat: 1 - -# tgamma -Test "tgamma (-0.5)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "tgamma (0.5)": -float: 1 -ifloat: 1 -Test "tgamma (0.7)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 - -# y0 -Test "y0 (1.0)": -double: 2 -float: 1 -idouble: 2 -ifloat: 1 -Test "y0 (1.5)": -double: 2 -float: 1 -idouble: 2 -ifloat: 1 -Test "y0 (10.0)": -float: 1 -ifloat: 1 -Test "y0 (8.0)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 - -# y1 -Test "y1 (0.125)": -double: 1 -idouble: 1 -Test "y1 (1.5)": -float: 1 -ifloat: 1 -Test "y1 (10.0)": -double: 3 -float: 1 -idouble: 3 -ifloat: 1 -Test "y1 (2.0)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "y1 (8.0)": -double: 1 -float: 2 -idouble: 1 -ifloat: 2 - -# yn -Test "yn (0, 1.0)": -double: 2 -float: 1 -idouble: 2 -ifloat: 1 -Test "yn (0, 1.5)": -double: 2 -float: 1 -idouble: 2 -ifloat: 1 -Test "yn (0, 10.0)": -float: 1 -ifloat: 1 -Test "yn (0, 8.0)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "yn (1, 0.125)": -double: 1 -idouble: 1 -Test "yn (1, 1.5)": -float: 1 -ifloat: 1 -Test "yn (1, 10.0)": -double: 3 -float: 1 -idouble: 3 -ifloat: 1 -Test "yn (1, 2.0)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "yn (1, 8.0)": -double: 1 -float: 2 -idouble: 1 -ifloat: 2 -Test "yn (10, 0.125)": -double: 1 -idouble: 1 -Test "yn (10, 0.75)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "yn (10, 1.0)": -double: 1 -idouble: 1 -Test "yn (10, 10.0)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "yn (10, 2.0)": -double: 2 -idouble: 2 -Test "yn (3, 0.125)": -double: 1 -idouble: 1 -Test "yn (3, 0.75)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "yn (3, 10.0)": -double: 1 -float: 1 -idouble: 1 -ifloat: 1 -Test "yn (3, 2.0)": -double: 1 -idouble: 1 - # Maximal error of functions: Function: "atan2": float: 1 |