This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/15381] [3.5 Regression] Bootstrap comparison failure!
- From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 May 2004 18:34:14 -0000
- Subject: [Bug optimization/15381] [3.5 Regression] Bootstrap comparison failure!
- References: <20040511173837.15381.danglin@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca 2004-05-11 18:34 -------
Subject: Re: [3.5 Regression] Bootstrap comparison fa
The following test program is miscompiled by the stage3 compiler:
double
foo (void)
{
return 0.5;
}
It results in the following assembly code:
bv %r0(%r2)
fcpy,dbl %fr0,%fr4
The above code returns 0. (%fr0) instead of 0.5.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15381