public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Vincent Lefevre <vincent+gcc@vinc17.org>
To: gcc@gcc.gnu.org
Subject: Re: MPFR 2.3.1 Release Candidate
Date: Tue, 01 Jan 2008 05:08:00 -0000	[thread overview]
Message-ID: <20080101050817.GF6543@ay.vinc17.org> (raw)
In-Reply-To: <Pine.GSO.4.58.0712311419550.18616@caipclassic.rutgers.edu>

On 2007-12-31 14:38:21 -0500, Kaveh R. GHAZI wrote:
> I read through the bugs in 2.3.0 from the above link.  I'm trying to see
> if I can write a GCC testcase that exposes one of those bugs when GCC is
> linked with mpfr-2.3.0, but passes when I use 2.3.1-rc1.
> 
> The bug would need to be exposed using a mantissa size of a C type, like
> 53 for double, and the default exponent range.  And all the global mpfr
> flags are cleared beforehand,

Are they cleared before each call to MPFR functions?

> and the input precision is the same as the output precision. These
> circumstances seem to eliminate many (all?) of the potential
> failures.

The fact that the input precision is the same as the output precision
will also eliminate some bugs.

> I tried several things through gcc+mpfr-2.3.0 like asin(-0.0), but
> that folds to -0.0 correctly.

Perhaps because the same variable is used for the input and output?

> I tried a call to sqrt(2.0) with -frounding-math. But the inexact
> flag is apparently set and gcc appropriately does not fold this
> case, instead replying on the library call to get the rounding
> correct.

The ternary value was correct, and I suppose that GCC tests the
ternary value instead of the global inexact flag (this is what one
does in general).

> Often the bug says it will fail on "huge" inputs, but doesn't say
> exactly what they are.

Most of the time, testcases were included in the changesets (not
in 53 bits, but in general, this shouldn't matter). You may want
to look at them.

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

  reply	other threads:[~2008-01-01  5:08 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-29 20:07 Vincent Lefevre
2007-12-29 20:10 ` Dennis Clarke
2007-12-29 20:14   ` Dave Korn
2007-12-29 22:01     ` Dennis Clarke
2007-12-29 23:03     ` Vincent Lefevre
2008-01-01  5:17       ` Vincent Lefevre
2007-12-31 22:44 ` Kaveh R. GHAZI
2008-01-01  5:08   ` Vincent Lefevre [this message]
2008-01-02  6:07     ` Kaveh R. GHAZI
2008-01-02 12:13       ` Vincent Lefevre
2008-01-04  2:54         ` Kaveh R. GHAZI
2008-01-04  8:06           ` Vincent Lefevre

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=20080101050817.GF6543@ay.vinc17.org \
    --to=vincent+gcc@vinc17.org \
    --cc=gcc@gcc.gnu.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).