mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
Add diagnostic printfs and disable test # 4 on i386
Reviewed by: jmmv, rpaulo MFC after: 3 days Phabric: D749 PR: 191676 Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
a48ad765f0
commit
5738235523
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271349
@ -117,6 +117,7 @@ test_nan()
|
|||||||
/* cexp(x + NaNi) = NaN + NaNi and optionally raises invalid */
|
/* cexp(x + NaNi) = NaN + NaNi and optionally raises invalid */
|
||||||
/* cexp(NaN + yi) = NaN + NaNi and optionally raises invalid (|y|>0) */
|
/* cexp(NaN + yi) = NaN + NaNi and optionally raises invalid (|y|>0) */
|
||||||
for (i = 0; i < N(finites); i++) {
|
for (i = 0; i < N(finites); i++) {
|
||||||
|
printf("# Run %d..\n", i);
|
||||||
testall(CMPLXL(finites[i], NAN), CMPLXL(NAN, NAN),
|
testall(CMPLXL(finites[i], NAN), CMPLXL(NAN, NAN),
|
||||||
ALL_STD_EXCEPT & ~FE_INVALID, 0, 0);
|
ALL_STD_EXCEPT & ~FE_INVALID, 0, 0);
|
||||||
if (finites[i] == 0.0)
|
if (finites[i] == 0.0)
|
||||||
@ -148,6 +149,7 @@ test_inf(void)
|
|||||||
|
|
||||||
/* cexp(x + inf i) = NaN + NaNi and raises invalid */
|
/* cexp(x + inf i) = NaN + NaNi and raises invalid */
|
||||||
for (i = 0; i < N(finites); i++) {
|
for (i = 0; i < N(finites); i++) {
|
||||||
|
printf("# Run %d..\n", i);
|
||||||
testall(CMPLXL(finites[i], INFINITY), CMPLXL(NAN, NAN),
|
testall(CMPLXL(finites[i], INFINITY), CMPLXL(NAN, NAN),
|
||||||
ALL_STD_EXCEPT, FE_INVALID, 1);
|
ALL_STD_EXCEPT, FE_INVALID, 1);
|
||||||
}
|
}
|
||||||
@ -189,6 +191,7 @@ test_reals(void)
|
|||||||
|
|
||||||
for (i = 0; i < N(finites); i++) {
|
for (i = 0; i < N(finites); i++) {
|
||||||
/* XXX could check exceptions more meticulously */
|
/* XXX could check exceptions more meticulously */
|
||||||
|
printf("# Run %d..\n", i);
|
||||||
test(cexp, CMPLXL(finites[i], 0.0),
|
test(cexp, CMPLXL(finites[i], 0.0),
|
||||||
CMPLXL(exp(finites[i]), 0.0),
|
CMPLXL(exp(finites[i]), 0.0),
|
||||||
FE_INVALID | FE_DIVBYZERO, 0, 1);
|
FE_INVALID | FE_DIVBYZERO, 0, 1);
|
||||||
@ -210,6 +213,7 @@ test_imaginaries(void)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < N(finites); i++) {
|
for (i = 0; i < N(finites); i++) {
|
||||||
|
printf("# Run %d..\n", i);
|
||||||
test(cexp, CMPLXL(0.0, finites[i]),
|
test(cexp, CMPLXL(0.0, finites[i]),
|
||||||
CMPLXL(cos(finites[i]), sin(finites[i])),
|
CMPLXL(cos(finites[i]), sin(finites[i])),
|
||||||
ALL_STD_EXCEPT & ~FE_INEXACT, 0, 1);
|
ALL_STD_EXCEPT & ~FE_INEXACT, 0, 1);
|
||||||
@ -241,6 +245,7 @@ test_small(void)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < N(tests); i += 4) {
|
for (i = 0; i < N(tests); i += 4) {
|
||||||
|
printf("# Run %d..\n", i);
|
||||||
a = tests[i];
|
a = tests[i];
|
||||||
b = tests[i + 1];
|
b = tests[i + 1];
|
||||||
x = tests[i + 2];
|
x = tests[i + 2];
|
||||||
@ -297,8 +302,12 @@ main(int argc, char *argv[])
|
|||||||
test_inf();
|
test_inf();
|
||||||
printf("ok 3 - cexp inf\n");
|
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();
|
test_reals();
|
||||||
printf("ok 4 - cexp reals\n");
|
printf("ok 4 - cexp reals\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
test_imaginaries();
|
test_imaginaries();
|
||||||
printf("ok 5 - cexp imaginaries\n");
|
printf("ok 5 - cexp imaginaries\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user