* PATCH: Enable _Decimal32 tests in gcc.dg/dfp/fe-convert-2.c
@ 2007-07-25 0:44 H.J. Lu
2007-07-25 1:39 ` Ben Elliston
0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 2007-07-25 0:44 UTC (permalink / raw)
To: Ben Elliston; +Cc: gcc-patches, janis187
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 ();
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: PATCH: Enable _Decimal32 tests in gcc.dg/dfp/fe-convert-2.c
2007-07-25 0:44 PATCH: Enable _Decimal32 tests in gcc.dg/dfp/fe-convert-2.c H.J. Lu
@ 2007-07-25 1:39 ` Ben Elliston
0 siblings, 0 replies; 2+ messages in thread
From: Ben Elliston @ 2007-07-25 1:39 UTC (permalink / raw)
To: H.J. Lu; +Cc: gcc-patches, janis187
On Tue, 2007-07-24 at 17:30 -0700, H.J. Lu wrote:
> 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, HJ. I had a patch to do the same!
Cheers, Ben
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-07-25 0:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-25 0:44 PATCH: Enable _Decimal32 tests in gcc.dg/dfp/fe-convert-2.c H.J. Lu
2007-07-25 1:39 ` Ben Elliston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).