]> git.ipfire.org Git - thirdparty/glibc.git/commit
Move tests of jn and yn from libm-test.inc to auto-libm-test-in.
authorJoseph Myers <joseph@codesourcery.com>
Wed, 18 Dec 2013 17:59:29 +0000 (17:59 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 18 Dec 2013 17:59:29 +0000 (17:59 +0000)
commitf889953b44da50bf8a7824c97d09dbe03fd11b83
treed498fd7f8015c4de4f9fe5bfaf3b6bd476271dd7
parent237764876709dfbd81ae9fc9f91ef7e496a3eb08
Move tests of jn and yn from libm-test.inc to auto-libm-test-in.

This patch moves tests of jn and yn to auto-libm-test-in, adding the
required support for gen-auto-libm-tests (and adding a missing
assertion there and fixing logic that was broken for functions with
integer arguments).

Tested x86_64 and x86 and ulps updated accordingly.

* math/auto-libm-test-in: Add tests of jn and yn.
* math/auto-libm-test-out: Regenerated.
* math/libm-test.inc (jn_test_data): Use AUTO_TESTS_if_f.
(yn_test_data): Likewise.
* math/gen-auto-libm-tests.c (func_calc_method): Add value
mpfr_if_f.
(func_calc_desc): Add mpfr_if_f union field.
(FUNC_mpfr_if_f): New macro.
(test_functions): Add jn and yn.
(calc_generic_results): Assert type of second input for
mpfr_ff_f.  Handle mpfr_if_f.
(output_for_one_input_case): Disable all checking for arguments
fitting floating-point types in case of an integer argument.
* sysdeps/i386/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
ChangeLog
math/auto-libm-test-in
math/auto-libm-test-out
math/gen-auto-libm-tests.c
math/libm-test.inc
sysdeps/i386/fpu/libm-test-ulps
sysdeps/x86_64/fpu/libm-test-ulps