5 static struct f_i t[] = {
6 #include "sanity/llroundf.h"
12 #pragma STDC FENV_ACCESS ON
17 for (i = 0; i < sizeof t/sizeof *t; i++) {
23 feclearexcept(FE_ALL_EXCEPT);
25 e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW);
27 if (!checkexcept(e, p->e, p->r)) {
28 printf("%s:%d: bad fp exception: %s llroundf(%a)=%lld, want %s",
29 p->file, p->line, rstr(p->r), p->x, p->i, estr(p->e));
30 printf(" got %s\n", estr(e));
34 printf("%s:%d: %s llroundf(%a) want %lld got %lld\n",
35 p->file, p->line, rstr(p->r), p->x, p->i, yi);