diff options
author | Joseph Myers <joseph@codesourcery.com> | 2014-03-06 14:11:19 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2014-03-06 14:11:19 +0000 |
commit | aa97dee16e5299bf2b8f7b2d67215361c7c904e2 (patch) | |
tree | 99e45c15390bfa53325b8e8400d1ccfe8c253b40 /sysdeps/init_array | |
parent | 2f0a0f44274808faa6bb55dd28b9ddbda6380f2a (diff) | |
download | glibc-aa97dee16e5299bf2b8f7b2d67215361c7c904e2.tar.gz glibc-aa97dee16e5299bf2b8f7b2d67215361c7c904e2.tar.xz glibc-aa97dee16e5299bf2b8f7b2d67215361c7c904e2.zip |
Adjust how gen-auto-libm-tests handles before-rounding/after-rounding cases.
This patch changes gen-auto-libm-tests so that, when generating test results that depend on whether the architecture has before-rounding or after-rounding tininess detection, the :before-rounding or :after-rounding conditions go on the exception / errno flags generated, rather than generating two separate lines in auto-libm-test-out for e.g. flt-32:before-rounding and flt-32:after-rounding. The rationale for this is as follows. It would be desirable for testing a libm function in all rounding modes to require just one function and array in libm-test.inc, not four (or five), with the array of test data including expected results for all rounding modes rather than separate arrays for each rounding mode that also need to repeat all the test inputs. For gen-libm-test.pl to generate data for such an array from auto-libm-test-out, it would be helpful if each (format, test input) pair has exactly four lines in auto-libm-test-out, one for each rounding mode, rather than some rounding modes having just one line and some having two because the exceptions depend on tininess detection. Tested x86_64 and x86. * math/gen-auto-libm-tests.c: Update comment on output format. (output_for_one_input_case): Generate before-rounding and after-rounding information as conditions on output flags not floating-point format. * math/auto-libm-test-out: Regenerated. * math/gen-libm-test.pl (cond_value): New function. (or_cond_value): Use cond_value. (generate_testfile): Handle conditional exceptions.
Diffstat (limited to 'sysdeps/init_array')
0 files changed, 0 insertions, 0 deletions