summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2014-10-23 01:02:37 +0000
committerngie <ngie@FreeBSD.org>2014-10-23 01:02:37 +0000
commita927de110df91c2722c8cbd297e283cc3a8aad8f (patch)
tree3c46a3d2defd53467af0ba9121970db7f2e8bd84 /tools
parent7eb987ee39f70147045585d0de7db48a44b80d37 (diff)
downloadFreeBSD-src-a927de110df91c2722c8cbd297e283cc3a8aad8f.zip
FreeBSD-src-a927de110df91c2722c8cbd297e283cc3a8aad8f.tar.gz
MFC r271349:
Add diagnostic printfs and disable test # 4 on i386 Reviewed by: jmmv, rpaulo Phabric: D749 PR: 191676 Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'tools')
-rw-r--r--tools/regression/lib/msun/test-cexp.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/regression/lib/msun/test-cexp.c b/tools/regression/lib/msun/test-cexp.c
index 78c3f1a..69897d3 100644
--- a/tools/regression/lib/msun/test-cexp.c
+++ b/tools/regression/lib/msun/test-cexp.c
@@ -117,6 +117,7 @@ test_nan()
/* cexp(x + NaNi) = NaN + NaNi and optionally raises invalid */
/* cexp(NaN + yi) = NaN + NaNi and optionally raises invalid (|y|>0) */
for (i = 0; i < N(finites); i++) {
+ printf("# Run %d..\n", i);
testall(CMPLXL(finites[i], NAN), CMPLXL(NAN, NAN),
ALL_STD_EXCEPT & ~FE_INVALID, 0, 0);
if (finites[i] == 0.0)
@@ -148,6 +149,7 @@ test_inf(void)
/* cexp(x + inf i) = NaN + NaNi and raises invalid */
for (i = 0; i < N(finites); i++) {
+ printf("# Run %d..\n", i);
testall(CMPLXL(finites[i], INFINITY), CMPLXL(NAN, NAN),
ALL_STD_EXCEPT, FE_INVALID, 1);
}
@@ -189,6 +191,7 @@ test_reals(void)
for (i = 0; i < N(finites); i++) {
/* XXX could check exceptions more meticulously */
+ printf("# Run %d..\n", i);
test(cexp, CMPLXL(finites[i], 0.0),
CMPLXL(exp(finites[i]), 0.0),
FE_INVALID | FE_DIVBYZERO, 0, 1);
@@ -210,6 +213,7 @@ test_imaginaries(void)
int i;
for (i = 0; i < N(finites); i++) {
+ printf("# Run %d..\n", i);
test(cexp, CMPLXL(0.0, finites[i]),
CMPLXL(cos(finites[i]), sin(finites[i])),
ALL_STD_EXCEPT & ~FE_INEXACT, 0, 1);
@@ -241,6 +245,7 @@ test_small(void)
int i;
for (i = 0; i < N(tests); i += 4) {
+ printf("# Run %d..\n", i);
a = tests[i];
b = tests[i + 1];
x = tests[i + 2];
@@ -297,8 +302,12 @@ main(int argc, char *argv[])
test_inf();
printf("ok 3 - cexp inf\n");
+#if defined(__i386__)
+ printf("not ok 4 - cexp reals # TODO: PR # 191676 fails assertion on i386\n");
+#else
test_reals();
printf("ok 4 - cexp reals\n");
+#endif
test_imaginaries();
printf("ok 5 - cexp imaginaries\n");
OpenPOWER on IntegriCloud