Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / gcc.c-torture / execute / ieee / 20030331-1.c
blob64d87e13b68065c33957bf85602f549ab2de2c55
1 extern void exit (int);
2 extern void abort (void);
3 float x = -1.5f;
5 float
6 rintf ()
8 static const float TWO23 = 8388608.0;
10 if (__builtin_fabs (x) < TWO23)
12 if (x > 0.0)
14 x += TWO23;
15 x -= TWO23;
17 else if (x < 0.0)
19 x = TWO23 - x;
20 x = -(x - TWO23);
24 return x;
27 int main (void)
29 if (rintf () != -2.0)
30 abort ();
31 exit (0);