5 static struct l_i t[] = {
6 #if LDBL_MANT_DIG == 53
7 #include "sanity/llrint.h"
9 #elif LDBL_MANT_DIG == 64
10 #include "sanity/llrintl.h"
17 #pragma STDC FENV_ACCESS ON
22 for (i = 0; i < sizeof t/sizeof *t; i++) {
28 feclearexcept(FE_ALL_EXCEPT);
30 e = fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW);
32 if (!checkexcept(e, p->e, p->r)) {
33 printf("%s:%d: bad fp exception: %s llrintl(%La)=%lld, want %s",
34 p->file, p->line, rstr(p->r), p->x, p->i, estr(p->e));
35 printf(" got %s\n", estr(e));
39 printf("%s:%d: %s llrintl(%La) want %lld got %lld\n",
40 p->file, p->line, rstr(p->r), p->x, p->i, yi);