public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
From: Andreas Jaeger <aj@suse.com>
To: "Joseph S. Myers" <joseph@codesourcery.com>
Cc: libc-alpha@sourceware.org, libc-ports@sourceware.org
Subject: Re: Add rounding mode information to math-tests.h and use it in libm-test.inc
Date: Sun, 09 Jun 2013 18:51:00 -0000	[thread overview]
Message-ID: <51B4CE90.3000002@suse.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1306041924470.10197@digraph.polyomino.org.uk>

On 06/04/2013 09:26 PM, Joseph S. Myers wrote:
> The lists of known testsuite failures for ARM and MIPS include various
> tests failing in circumstances when rounding modes or exceptions
> support is not available at runtime.
>
> In line with the principle of trying to have zero failures as the
> expected testsuite state, this patch adds macros to math-tests.h to
> say when testing of a rounding mode should be disabled despite
> fesetround succeeding, and makes libm-test.inc use them, with
> definitions being added for ARM; similar macros will also be needed to
> indicate when support for exceptions is available, and the macros will
> need using in other tests.  These macros will also be usable for MIPS,
> to describe the situation there where MIPS64 long double (IEEE quad)
> is implemented in libgcc using soft-fp without support for exceptions
> or rounding modes, even when float and double use hardware floating
> point.
>
> (fesetround passing but not properly affecting all types is of course
> a bug, but one only fixable in libgcc - by using IFUNC there in the
> ARM case to make __aeabi_* use VFP when available at runtime, by using
> soft-fp instead of fp-bit in the MIPS case.  Disabling the tests here
> is similar to the existing handling of sNaN tests; if the GCC issues
> are fixed, the math-tests.h definitions can be made conditional on the
> GCC version.  Macros indicating when exception support is expected to
> be missing will still be relevant even with fixed libgcc.)
>
> Tested on an affected ARM configuration that the non-default
> rounding-mode tests from libm-test.inc are no longer run with this
> patch applied.

Thanks, this looks fine to me,

Andreas

-- 
  Andreas Jaeger aj@{suse.com,opensuse.org} Twitter/Identica: 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

      reply	other threads:[~2013-06-09 18:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-04 19:26 Joseph S. Myers
2013-06-09 18:51 ` Andreas Jaeger [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51B4CE90.3000002@suse.com \
    --to=aj@suse.com \
    --cc=joseph@codesourcery.com \
    --cc=libc-alpha@sourceware.org \
    --cc=libc-ports@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).