allow omitted inexact in nearest integer functions
[libc-test] / src / math / roundf.c
index d61762f..5a8f2e5 100644 (file)
@@ -26,7 +26,7 @@ int main(void)
                y = roundf(p->x);
                e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW);
 
-               if (!checkexceptall(e, p->e, p->r)) {
+               if (!checkexceptall(e, p->e, p->r) && (e|INEXACT) != p->e) {
                        printf("%s:%d: bad fp exception: %s roundf(%a)=%a, want %s",
                                p->file, p->line, rstr(p->r), p->x, p->y, estr(p->e));
                        printf(" got %s\n", estr(e));