Commit bfeee001 by Franz Sirl Committed by Franz Sirl

20010114-2.c: New test.

	2001-01-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>

	* gcc.c-torture/execute/20010114-2.c: New test.

From-SVN: r39022
parent 3e854cf7
2001-01-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* gcc.c-torture/execute/20010114-2.c: New test.
2001-01-14 Joseph S. Myers <jsm28@cam.ac.uk>
* gcc.c-torture/compile/20010114-1.c: New test.
......
extern void exit (int);
extern void abort (void);
float
rintf (float x)
{
static const float TWO23 = 8388608.0;
if (__builtin_fabs (x) < TWO23)
{
if (x > 0.0)
{
x += TWO23;
x -= TWO23;
}
else if (x < 0.0)
{
x = TWO23 - x;
x = -(x - TWO23);
}
}
return x;
}
int main (void)
{
if (rintf (-1.5) != -2.0)
abort ();
exit (0);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment