X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fllrintl.c;h=4ebacbe7d0c3a89e3df7225c1dda565239ce5765;hb=1d90e185c4ef9246e7e4bf02c3ee13cbd71dd7da;hp=f63c98b53990ca14911d6cb1cb7bddde323ee82b;hpb=e084227a3608bc38230b88ea03e7b0f0804dd3ad;p=libc-test diff --git a/src/math/llrintl.c b/src/math/llrintl.c index f63c98b..4ebacbe 100644 --- a/src/math/llrintl.c +++ b/src/math/llrintl.c @@ -1,13 +1,15 @@ #include #include -#include "util.h" +#include "mtest.h" static struct l_i t[] = { #if LDBL_MANT_DIG == 53 #include "sanity/llrint.h" +#include "special/llrint.h" #elif LDBL_MANT_DIG == 64 #include "sanity/llrintl.h" +#include "special/llrintl.h" #endif }; @@ -16,7 +18,6 @@ int main(void) { #pragma STDC FENV_ACCESS ON long long yi; - float d; int e, i, err = 0; struct l_i *p; @@ -36,7 +37,7 @@ int main(void) printf(" got %s\n", estr(e)); err++; } - if (yi != p->i) { + if (!(p->e&INVALID) && yi != p->i) { printf("%s:%d: %s llrintl(%La) want %lld got %lld\n", p->file, p->line, rstr(p->r), p->x, p->i, yi); err++;