From: Andy Hutchinson Date: Tue, 3 Jun 2008 23:46:07 +0000 (+0000) Subject: float-floor.c: Adjust test for 4 byte doubles. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0aae926db604eb8b4e5ff09046c571e79429a2d0;p=gcc.git float-floor.c: Adjust test for 4 byte doubles. PR/34880 * gcc.c-torture/execute/float-floor.c: Adjust test for 4 byte doubles. From-SVN: r136344 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 28609e1c3ea..536462e66d4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2008-06-03 Andy Hutchinson + + PR/34880 + * gcc.c-torture/execute/float-floor.c: Adjust test for 4 byte + doubles. + 2008-06-03 Eric Botcazou * gnat.dg/aliasing1.ad[sb]: New test. diff --git a/gcc/testsuite/gcc.c-torture/execute/float-floor.c b/gcc/testsuite/gcc.c-torture/execute/float-floor.c index 4225c49a729..fedc1f73f43 100644 --- a/gcc/testsuite/gcc.c-torture/execute/float-floor.c +++ b/gcc/testsuite/gcc.c-torture/execute/float-floor.c @@ -1,4 +1,10 @@ + +#if(__SIZEOF_DOUBLE__==8) double d = 1024.0 - 1.0 / 32768.0; +#else +double d = 1024.0 - 1.0 / 16384.0; +#endif + extern double floor(double); extern float floorf(float); extern void abort();