This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Adjust how gen-auto-libm-tests handles before-rounding/after-rounding cases


On 02/21/2014 08:14 PM, Joseph S. Myers wrote:
> 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.  See the diffs to auto-libm-test-out included
> below for details.
> 
> 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.

ok, thanks,

Andreas
-- 
 Andreas Jaeger aj@{suse.com,opensuse.org} Twitter: jaegerandi
  SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GF: Jeff Hawn,Jennifer Guild,Felix Imendörffer,HRB16746 (AG Nürnberg)
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]