This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: gcc.c-torture/execute/20010114-2.c
- To: Franz dot Sirl-kernel at lauterbach dot com (Franz Sirl)
- Subject: Re: gcc.c-torture/execute/20010114-2.c
- From: Joern Rennecke <amylaar at cambridge dot redhat dot com>
- Date: Mon, 9 Apr 2001 20:03:25 +0100 (BST)
- Cc: amylaar at cambridge dot redhat dot com (Joern Rennecke),gcc-bugs at gcc dot gnu dot org
> > 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.