Merge pull request #88 from joshtriplett/such-precision-many-fail-wow testsuite/libffi.call/many.c: Avoid spurious failure due to excess precision
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
diff --git a/ChangeLog b/ChangeLog
index d3cfa9d..2cd55b6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2014-03-16 Josh Triplett <josh@joshtriplett.org>
+ * testsuite/libffi.call/many.c: Avoid spurious failure due to excess
+ floating-point precision.
+ * testsuite/libffi.call/many_win32.c: Ditto.
+
+2014-03-16 Josh Triplett <josh@joshtriplett.org>
+
* libtool-ldflags: Re-add.
2014-03-16 Josh Triplett <josh@joshtriplett.org>
diff --git a/testsuite/libffi.call/many.c b/testsuite/libffi.call/many.c
index 11818e6..5447664 100644
--- a/testsuite/libffi.call/many.c
+++ b/testsuite/libffi.call/many.c
@@ -32,7 +32,7 @@ static float many(float f1,
(double) f11, (double) f12, (double) f13);
#endif
- return f1/f2+f3/f4+f5/f6+f7/f8+f9/f10+f11/f12+f13;
+ return f1+f2+f3+f4+f5+f6+f7+f8+f9+f10+f11+f12+f13;
}
int main (void)
diff --git a/testsuite/libffi.call/many_win32.c b/testsuite/libffi.call/many_win32.c
index 1b26332..d9038f4 100644
--- a/testsuite/libffi.call/many_win32.c
+++ b/testsuite/libffi.call/many_win32.c
@@ -23,7 +23,7 @@ static float __attribute__((stdcall)) stdcall_many(float f1,
float f12,
float f13)
{
- return ((f1/f2+f3/f4+f5/f6+f7/f8+f9/f10+f11/f12) * f13);
+ return f1+f2+f3+f4+f5+f6+f7+f8+f9+f10+f11+f12+f13;
}
int main (void)