PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / float-floor.c
blobfedc1f73f435e2e64e9f2ad267802a6603ff3f9a
2 #if(__SIZEOF_DOUBLE__==8)
3 double d = 1024.0 - 1.0 / 32768.0;
4 #else
5 double d = 1024.0 - 1.0 / 16384.0;
6 #endif
8 extern double floor(double);
9 extern float floorf(float);
10 extern void abort();
12 int main() {
14 double df = floor(d);
15 float f1 = (float)floor(d);
17 if ((int)df != 1023 || (int)f1 != 1023)
18 abort ();
20 return 0;