math: fix some invalid checks (remquo, lrint, lround, y0, y1, yn)
[libc-test] / src / math / llround.c
index 42aaa40..62f1a4e 100644 (file)
@@ -4,14 +4,14 @@
 
 static struct d_i t[] = {
 #include "sanity/llround.h"
+#include "special/llround.h"
 
 };
 
 int main(void)
 {
        #pragma STDC FENV_ACCESS ON
-       int yi;
-       float d;
+       long long yi;
        int e, i, err = 0;
        struct d_i *p;
 
@@ -31,8 +31,8 @@ int main(void)
                        printf(" got %s\n", estr(e));
                        err++;
                }
-               if (yi != p->i) {
-                       printf("%s:%d: %s llround(%a) want %lld got %d\n",
+               if (!(p->e&INVALID) && yi != p->i) {
+                       printf("%s:%d: %s llround(%a) want %lld got %lld\n",
                                p->file, p->line, rstr(p->r), p->x, p->i, yi);
                        err++;
                }