public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dje at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/29253] New: expand_abs wrong default code for floating point Date: Wed, 27 Sep 2006 16:37:00 -0000 [thread overview] Message-ID: <bug-29253-327@http.gcc.gnu.org/bugzilla/> (raw) When expanding fabs inline, GCC attempts to use a sequence without jumps. If that sequence fails, GCC falls back to the equivalent of if (x >= 0.0) return x; return -x; This sequence is incorrect for the IEEE floating point value -0.0. This problem normally does not occur because most architectures have an instruction to compute fabs or one can perform bit-twiddling, especially for software floating point emulation. However, for the cases such as software floating point emulation of long double, the jump sequence is produced, leading to wrong results for the corner case. -- Summary: expand_abs wrong default code for floating point Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dje at gcc dot gnu dot org GCC build triplet: *-*-* GCC host triplet: *-*-* GCC target triplet: *-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29253
next reply other threads:[~2006-09-27 16:37 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-09-27 16:37 dje at gcc dot gnu dot org [this message] 2006-09-28 9:59 ` [Bug middle-end/29253] " rguenth at gcc dot gnu dot org 2008-02-03 14:38 ` steven at gcc dot gnu dot org 2008-02-04 14:28 ` dje at gcc dot gnu dot org 2008-02-04 14:52 ` rguenth at gcc dot gnu dot org 2008-02-04 14:57 ` rguenth at gcc dot gnu dot org 2008-02-04 15:08 ` rguenth at gcc dot gnu dot org 2008-02-04 16:30 ` bergner at gcc dot gnu dot org 2008-02-04 17:05 ` bergner at gcc dot gnu dot org 2008-02-05 10:55 ` rguenth at gcc dot gnu dot org 2008-02-05 16:39 ` bergner at gcc dot gnu dot org 2008-02-05 19:35 ` bergner at gcc dot gnu dot 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-29253-327@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: linkBe 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).