public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* middle-end/6205: -O -fpmath=sse breaks visibility of register accumulated sum
@ 2002-04-06  7:16 tprince
  0 siblings, 0 replies; 2+ messages in thread
From: tprince @ 2002-04-06  7:16 UTC (permalink / raw)
  To: gcc-gnats


>Number:         6205
>Category:       middle-end
>Synopsis:       -O -fpmath=sse breaks visibility of register accumulated sum
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 06 07:16:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Tim Prince
>Release:        3.1
>Organization:
>Environment:
linux-SuSE 7.3 or cygwin/2K
>Description:
result of a float sum in SSE register is seen as NaN in certain contexts, when built with -O -mfpmath=sse

Problem originally seen in larger examples in g77; case available on request.

>How-To-Repeat:
gcc -O -march=pentium3 -mfpmath=sse badsum.c
./a.out

result seen as nan in printf(), but is OK if -O or -mfpmath options are removed
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="badsum.c"; name="badsum.c"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="badsum.c"

I2luY2x1ZGUgPHN0ZGxpYi5oPgojaW5jbHVkZSA8c3RkaW8uaD4KaW50IG1haW4oKXsKaW50IGks
bj03OwkvL2Nob29zZSBhbnkgbiA8IHNxcnQoMS9GTFRfRVBTSUxPTikKICAgIGZsb2F0IGNvbXAs
c3VtPTA7CiAgICBmb3IoaT0xO2k8PW47KytpKQoJc3VtICs9IGk7CiAgICBwcmludGYoInN1bSBv
ZiAlZCBpbnRzOiAlZ1xuIixuLHN1bSk7CiAgICBjb21wID0gbioobiouNWYrLjVmKTsKICAgIGlm
KHN1bSAhPSBjb21wKXsKCXByaW50ZigiQmFkIHN1bSAoc2VlbiB3aXRoIGdjYyAtTyAtbWFyY2g9
cGVudGl1bXBybyAtbXNzZSlcbiIpOwoJYWJvcnQ7Cgl9CiAgICByZXR1cm4gMDsKfQo=


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

* Re: middle-end/6205: -O -fpmath=sse breaks visibility of register accumulated sum
@ 2002-05-28  5:51 hubicka
  0 siblings, 0 replies; 2+ messages in thread
From: hubicka @ 2002-05-28  5:51 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, tprince

Synopsis: -O -fpmath=sse breaks visibility of register accumulated sum

State-Changed-From-To: open->closed
State-Changed-By: hubicka
State-Changed-When: Tue May 28 05:49:37 2002
State-Changed-Why:
    Fixed by Jakub and me for both mainline and 3.1 branch

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6205


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

end of thread, other threads:[~2002-05-28 12:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-06  7:16 middle-end/6205: -O -fpmath=sse breaks visibility of register accumulated sum tprince
2002-05-28  5:51 hubicka

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