public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/47989] New: -mrecip causes 482.sphinx3 to miscompare
@ 2011-03-04 14:38 rguenth at gcc dot gnu.org
  2011-03-04 16:06 ` [Bug target/47989] -mrecip causes 482.sphinx3 and 464.h264ref " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-03-04 14:38 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: -mrecip causes 482.sphinx3 to miscompare
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rguenth@gcc.gnu.org
            Target: x86_64-*-*


We currently miscompare 482.sphinx3 with -Ofast -mrecip because for

float foo (float x, float y)
{    
  return ((int)(x/y + 0.5)) * y;
} 

we use rcpss for the division by y.  This results in a possible error
of +-1 for the integer intermediate result and an error of +-y for
the overall result.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-10-20 15:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-04 14:38 [Bug target/47989] New: -mrecip causes 482.sphinx3 to miscompare rguenth at gcc dot gnu.org
2011-03-04 16:06 ` [Bug target/47989] -mrecip causes 482.sphinx3 and 464.h264ref " rguenth at gcc dot gnu.org
2011-03-10 13:27 ` [Bug target/47989] -mrecip causes 482.sphinx3, 464.h264ref and 481.wrf " rguenth at gcc dot gnu.org
2011-03-10 14:01 ` dominiq at lps dot ens.fr
2011-10-20 15:14 ` uros at gcc dot gnu.org
2011-10-20 15:30 ` ubizjak at gmail dot com

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).