PR/34880
authorhutchinsonandy <hutchinsonandy@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jun 2008 23:46:07 +0000 (23:46 +0000)
committerhutchinsonandy <hutchinsonandy@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 3 Jun 2008 23:46:07 +0000 (23:46 +0000)
* gcc.c-torture/execute/float-floor.c: Adjust test for 4 byte doubles.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136344 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 28609e1..536462e 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 4225c49..fedc1f7 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();