1/* The fp-bit.c function __floatunsisf had a latent bug where guard bits
2   could be lost leading to incorrect rounding.  */
3/* Origin: Joseph Myers <joseph@codesourcery.com> */
4
5extern void abort (void);
6extern void exit (int);
7#if __INT_MAX__ >= 0x7fffffff
8volatile unsigned u = 0x80000081;
9#else
10volatile unsigned long u = 0x80000081;
11#endif
12volatile float f1, f2;
13int
14main (void)
15{
16  f1 = (float) u;
17  f2 = (float) 0x80000081;
18  if (f1 != f2)
19    abort ();
20  exit (0);
21}
22