summaryrefslogtreecommitdiff
path: root/tests/tgamma.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2012-05-07 12:23:44 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2012-05-07 12:23:44 +0000
commite96e68b27d908c07382cbb0d1cf981b32bb8bdfd (patch)
treee68b50deb3cdf518d374e07fa2f7325233ddbc2b /tests/tgamma.c
parent70159af0c7e499fefe9a435f097a6ce469a8bc07 (diff)
downloadmpfr-e96e68b27d908c07382cbb0d1cf981b32bb8bdfd.tar.gz
[tests/tgamma.c] Added tests to trigger the pre-r8189 endless loop
on 32-bit machines. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8196 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tgamma.c')
-rw-r--r--tests/tgamma.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/tgamma.c b/tests/tgamma.c
index 8f9871716..e699614e6 100644
--- a/tests/tgamma.c
+++ b/tests/tgamma.c
@@ -1021,6 +1021,11 @@ exp_lgamma_tests (void)
exp_lgamma (x, 53, 64);
mpfr_set_str (x, "-1.2b13fc45a92dea8@14", 16, MPFR_RNDN);
exp_lgamma (x, 53, 64);
+ /* Similar tests (overflow threshold) for 32-bit machines. */
+ mpfr_set_str (x, "2ab68d8.657542f855111c61", 16, MPFR_RNDN);
+ exp_lgamma (x, 12, 64);
+ mpfr_set_str (x, "-2ab68d6.657542f855111c61", 16, MPFR_RNDN);
+ exp_lgamma (x, 12, 64);
/* The following test is an overflow on 32-bit and 64-bit machines.
Revision r8189 fails on 64-bit machines as the flag is unset. */
mpfr_set_str (x, "1.2b13fc45a92ded8@14", 16, MPFR_RNDN);