public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/60181] constant folding of complex number incorrect
Date: Fri, 14 Feb 2014 09:37:00 -0000	[thread overview]
Message-ID: <bug-60181-4-8WmI3Oweaf@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-60181-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60181

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think that it needs to be decided on a case-by-case basis whether the
runtime complex division routine is "precise enough".  But yes, you
generally cannot expect constant folding and runtime execution to produce
the exact same result.  This is FP after all ...

(I would expect it for operations that are specified to be rounded correctly
to 0.5ulp precision though)

Note that the goal we have instead is that cross-compiling from all hosts
produces the same constant folding results for a target (code generation
doesn't depend on the host).


  parent reply	other threads:[~2014-02-14  9:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-13 16:19 [Bug target/60181] New: " krebbel at gcc dot gnu.org
2014-02-13 18:09 ` [Bug target/60181] " joseph at codesourcery dot com
2014-02-14  9:37 ` rguenth at gcc dot gnu.org [this message]
2014-02-14 11:59 ` krebbel at gcc dot gnu.org
2014-02-14 15:34 ` pinskia at gcc dot gnu.org
2014-10-02 14:52 ` boger at us dot ibm.com
2014-10-02 15:38 ` boger at us dot ibm.com
2014-10-02 15:47 ` dje at gcc dot gnu.org
2014-10-02 16:10 ` pinskia at gcc dot gnu.org

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=bug-60181-4-8WmI3Oweaf@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).