This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/15381] [3.5 Regression] Bootstrap comparison failure!


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]