X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=src%2Fmath%2Flroundl.c;h=0b933be62cce45d32a606f5a42fd84f5479d7f57;hp=42b8479871fc2df03702244daaef8fe9d17b7084;hb=b55b931794bff9e88a3443daa8404c74f7f1d17c;hpb=5fc943786cdd4e93efe31f9f742f2097cec9f8a1 diff --git a/src/math/lroundl.c b/src/math/lroundl.c index 42b8479..0b933be 100644 --- a/src/math/lroundl.c +++ b/src/math/lroundl.c @@ -31,7 +31,7 @@ int main(void) yi = lroundl(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 lroundl(%La)=%lld, want %s", p->file, p->line, rstr(p->r), p->x, p->i, estr(p->e)); printf(" got %s\n", estr(e));