X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fllround.c;h=535611ad9c050268d8530990e961dbb4dc7b963d;hb=c6fc4f04d62c2c495717268f73427f83ff685ff5;hp=62f1a4e3ffa598238a2ecf5f5b796b6eeb5b8dab;hpb=b3580f11bf7b91afd597e6224c2f265d6d0b087f;p=libc-test diff --git a/src/math/llround.c b/src/math/llround.c index 62f1a4e..535611a 100644 --- a/src/math/llround.c +++ b/src/math/llround.c @@ -1,6 +1,6 @@ #include #include -#include "util.h" +#include "mtest.h" static struct d_i t[] = { #include "sanity/llround.h" @@ -25,7 +25,7 @@ int main(void) yi = llround(p->x); e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW); - if (!checkexcept(e, p->e, p->r)) { + if (!checkexcept(e, p->e, p->r) && (e|INEXACT) != p->e) { printf("%s:%d: bad fp exception: %s llround(%a)=%lld, want %s", p->file, p->line, rstr(p->r), p->x, p->i, estr(p->e)); printf(" got %s\n", estr(e));