X-Git-Url: http://nsz.repo.hu/git/?p=libc-test;a=blobdiff_plain;f=src%2Fmath%2Flroundf.c;fp=src%2Fmath%2Flroundf.c;h=303cb6a2cf4c6844bed9d9b50d37bc12669fc2d9;hp=c9544821fd59fb361d88ba10c62bfb02e4731a3c;hb=b55b931794bff9e88a3443daa8404c74f7f1d17c;hpb=5fc943786cdd4e93efe31f9f742f2097cec9f8a1 diff --git a/src/math/lroundf.c b/src/math/lroundf.c index c954482..303cb6a 100644 --- a/src/math/lroundf.c +++ b/src/math/lroundf.c @@ -25,7 +25,7 @@ int main(void) yi = lroundf(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 lroundf(%a)=%lld, want %s", p->file, p->line, rstr(p->r), p->x, p->i, estr(p->e)); printf(" got %s\n", estr(e));