2 float-floor.c from the execute part of the gcc torture tests.
8 #pragma disable_warning 93
11 #if(__SIZEOF_DOUBLE__==8)
12 double d
= 1024.0 - 1.0 / 32768.0;
14 double d
= 1024.0 - 1.0 / 16384.0;
17 extern double floor(double);
18 extern float floorf(float);
21 testTortureExecute (void)
23 #if 0 // Enable when floor and floorf are supported in SDCC
25 float f1
= (float)floor(d
);
27 if ((int)df
!= 1023 || (int)f1
!= 1023)