On Thu, Jun 14, 2007 at 10:13:49AM -0700, Janis Johnson wrote: > On Thu, 2007-06-14 at 06:30 -0700, H. J. Lu wrote: > > > With Intel BID library, we got 2 failures in unmodified DFP tests, > > fe-convert-1.c and fe-convert-2.c, due to different exceptions > > in Intel BID library vs. libdecnumber. The differences are > > Go ahead and make those test changes. >
I checked in those changes. Those tests will fail with the current libdecnumber. Intel BID library patch: http://gcc.gnu.org/ml/gcc-patches/2007-06/msg00981.html will need this patch to support Intel BID library and all DFP tests should pass with BID. H.J. --- 2007-06-14 H.J. Lu <[EMAIL PROTECTED]> * gcc.dg/dfp/dfp-round.h (FE_DEC_TONEAREST): Redfined for BID. (FE_DEC_DOWNWARD): Likewise. (FE_DEC_UPWARD): Likewise. (FE_DEC_TOWARDZERO): Likewise. (FE_DEC_TONEARESTFROMZERO): Likewise. --- gcc/testsuite/gcc.dg/dfp/dfp-round.h.dfp-test 2007-05-25 17:42:57.000000000 -0700 +++ gcc/testsuite/gcc.dg/dfp/dfp-round.h 2007-06-13 22:47:36.000000000 -0700 @@ -2,11 +2,19 @@ pass on the rounding mode to decNumber, but later it can be replaced with Official Stuff. */ +#ifdef __DECIMAL_BID_FORMAT__ +#define FE_DEC_TONEAREST 0 +#define FE_DEC_DOWNWARD 1 +#define FE_DEC_UPWARD 2 +#define FE_DEC_TOWARDZERO 3 +#define FE_DEC_TONEARESTFROMZERO 4 +#else #define FE_DEC_DOWNWARD 0 #define FE_DEC_TONEAREST 1 #define FE_DEC_TONEARESTFROMZERO 2 #define FE_DEC_TOWARDZERO 3 #define FE_DEC_UPWARD 4 +#endif extern void __dfp_set_round (int); #define DFP_SETROUND(M) __dfp_set_round(M)