summaryrefslogtreecommitdiff
path: root/tests/tmul.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2016-05-30 05:57:51 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2016-05-30 05:57:51 +0000
commit5ede19526edf011fcf24983cc6f7b91d32a2bead (patch)
tree69a9fcab593017b58707d75dc33f5df8f15c397e /tests/tmul.c
parentcf11a3eb08d62789a6fdc3347da236c3c389743f (diff)
downloadmpfr-5ede19526edf011fcf24983cc6f7b91d32a2bead.tar.gz
more work on the faithful branch
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/faithful@10385 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tmul.c')
-rw-r--r--tests/tmul.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/tests/tmul.c b/tests/tmul.c
index c503ab2ab..583623963 100644
--- a/tests/tmul.c
+++ b/tests/tmul.c
@@ -227,9 +227,19 @@ check_exact (void)
printf ("unexpected inexact return value\n");
exit (1);
}
- if ((inexact == 0) && mpfr_cmp (c, d))
+ if ((inexact == 0) && mpfr_cmp (c, d) && rnd != MPFR_RNDF)
{
- printf ("inexact=0 but results differ\n");
+ printf ("rnd=%s: inexact=0 but results differ\n",
+ mpfr_print_rnd_mode (rnd));
+ printf ("a=");
+ mpfr_out_str (stdout, 2, 0, a, rnd);
+ printf ("\nb=");
+ mpfr_out_str (stdout, 2, 0, b, rnd);
+ printf ("\nc=");
+ mpfr_out_str (stdout, 2, 0, c, rnd);
+ printf ("\nd=");
+ mpfr_out_str (stdout, 2, 0, d, rnd);
+ printf ("\n");
exit (1);
}
else if (inexact && (mpfr_cmp (c, d) == 0) && rnd != MPFR_RNDF)