PATCH: Enable _Decimal32 tests in gcc.dg/dfp/fe-convert-2.c
H.J. Lu
hjl@lucon.org
Wed Jul 25 00:44:00 GMT 2007
Hi Ben, Janis,
As we discussed at gcc summit, the following 2 DFP conversion tests
failed with libdecnumber. This patch enables them unconditionally so
that people will know when libdecnumber is fixed.
Thanks.
H.J.
----
2007-07-24 H.J. Lu <hongjiu.lu@intel.com>
* gcc.dg/dfp/fe-convert-2.c: Unconditionally enable testing
for converting from 1.0e-96 and 0.00048828125 to _Decimal32.
--- gcc/testsuite/gcc.dg/dfp/fe-convert-2.c.dfp 2007-06-14 16:17:54.000000000 -0700
+++ gcc/testsuite/gcc.dg/dfp/fe-convert-2.c 2007-07-24 17:22:49.000000000 -0700
@@ -14,11 +14,10 @@ CONVERT (101, d, d32, 1.0e97, FE_OVERFLO
CONVERT (102, d, d32, -1.0e96, FE_INEXACT)
CONVERT (103, d, d32, -1.0e97, FE_OVERFLOW|FE_INEXACT)
-#ifdef __DECIMAL_BID_FORMAT__
-/* These only result in fp exceptions with BID. DPD doesn't work. */
+/* FIXME: These only result in fp exceptions when libbid is used.
+ libdecnumber doesn't work correctly. */
CONVERT (104, d, d32, 1.0e-96, FE_UNDERFLOW|FE_INEXACT)
CONVERT (105, d, d32, 0.00048828125, FE_INEXACT) /* exact power of 2 */
-#endif
int
main ()
@@ -27,10 +26,8 @@ main ()
convert_101 ();
convert_102 ();
convert_103 ();
-#ifdef __DECIMAL_BID_FORMAT__
convert_104 ();
convert_105 ();
-#endif
if (failcnt != 0)
abort ();
More information about the Gcc-patches
mailing list