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]

Re: gcc.c-torture/execute/20010114-2.c


At 21:03 09.04.2001, Joern Rennecke wrote:
> > > I think the gcc.c-torture/execute/20010114-2.c test is invalid, 
> because it
> > > will fail if you have excess precision in intermediate calculations, or
> > > if you just have a float implementation with more than the minimal
> > > precision required.
> >
> > I'm not sure. On PPC it gets calculated with extra precision as well 
> and it
> > works as only exactly representable numbberss are used, but I have no 
> problem
> > restricting the test to some platforms.
>
>The rintf founction relies on rounding error to do its work.  When more
>than 23 bit precision comes into play, the argument is returned unchanged.

Hmm, since I don't know if the test will still trigger the bug on PPC with 
-ffloat-store, OK to move the test to the ieee dir and copy it to gcc.dg 
restricted to PPC?

Franz.


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