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