float-floor.c: Adjust test for 4 byte doubles.
authorAndy Hutchinson <hutchinsonandy@aim.com>
Tue, 3 Jun 2008 23:46:07 +0000 (23:46 +0000)
committerAndy Hutchinson <hutchinsonandy@gcc.gnu.org>
Tue, 3 Jun 2008 23:46:07 +0000 (23:46 +0000)
PR/34880
* gcc.c-torture/execute/float-floor.c: Adjust test for 4 byte doubles.

From-SVN: r136344

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/float-floor.c

index 28609e1c3ea7d137a5d19da0023d88e97dd060dc..536462e66d4190171e5d4730e54ace7a98e3c89f 100644 (file)
@@ -1,3 +1,9 @@
+2008-06-03  Andy Hutchinson  <hutchinsonandy@aim.com>
+
+       PR/34880
+       * gcc.c-torture/execute/float-floor.c: Adjust test for 4 byte 
+       doubles.
+
 2008-06-03  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gnat.dg/aliasing1.ad[sb]: New test.
index 4225c49a7291d7995540f0dd7a5f5e4e2d83d682..fedc1f73f435e2e64e9f2ad267802a6603ff3f9a 100644 (file)
@@ -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();