- e = getexcept();
- if (!checkexcept(e, p->e, p->r)) {
- printf("%s copysign(%a,%a)==%a except: want %s", rstr(p->r), p->x, p->x2, p->y, estr(p->e));
+ e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW);
+
+ if (!checkexceptall(e, p->e, p->r)) {
+ printf("%s:%d: bad fp exception: %s copysign(%a,%a)=%a, want %s",
+ p->file, p->line, rstr(p->r), p->x, p->x2, p->y, estr(p->e));