X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fexp2.c;h=612b7bbe2960774c1454848e98fb3bd5a9c55573;hb=refs%2Fheads%2Fmaster;hp=cd73dddb63adbd0f922475b575d6ce3dbc84690d;hpb=f3f0ff4782fc90bd0f3e48fd541ee431f76aaed1;p=libc-test diff --git a/src/math/exp2.c b/src/math/exp2.c index cd73ddd..612b7bb 100644 --- a/src/math/exp2.c +++ b/src/math/exp2.c @@ -1,6 +1,6 @@ #include #include -#include "util.h" +#include "mtest.h" static struct d_d t[] = { #include "sanity/exp2.h" @@ -27,10 +27,13 @@ int main(void) e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW); if (!checkexcept(e, p->e, p->r)) { + if (fabs(y) < 0x1p-1022 && (e|INEXACT) == (INEXACT|UNDERFLOW)) + printf("X "); + else + err++; printf("%s:%d: bad fp exception: %s exp2(%a)=%a, want %s", p->file, p->line, rstr(p->r), p->x, p->y, estr(p->e)); printf(" got %s\n", estr(e)); - err++; } d = ulperr(y, p->y, p->dy); if (!checkulp(d, p->r)) {