X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=src%2Fmath%2Fllround.c;h=535611ad9c050268d8530990e961dbb4dc7b963d;hp=a6c991a5468a381a8231ea38e9c105c8e5ddfab4;hb=b55b931794bff9e88a3443daa8404c74f7f1d17c;hpb=5fc943786cdd4e93efe31f9f742f2097cec9f8a1 diff --git a/src/math/llround.c b/src/math/llround.c index a6c991a..535611a 100644 --- a/src/math/llround.c +++ b/src/math/llround.c @@ -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));