math tests: fma underflow cases
[libc-test] / src / math / fmaf.c
index 20fdb02..0a0e196 100644 (file)
@@ -4,6 +4,7 @@
 
 static struct fff_f t[] = {
 #include "sanity/fmaf.h"
+#include "special/fmaf.h"
 };
 
 int main(void)
@@ -31,7 +32,7 @@ int main(void)
                        err++;
                }
                d = ulperrf(y, p->y, p->dy);
-               if (!checkulp(d, p->r)) {
+               if (!checkcr(y, p->y, p->r)) {
                        printf("%s:%d: %s fmaf(%a,%a,%a) want %a got %a ulperr %.3f = %a + %a\n",
                                p->file, p->line, rstr(p->r), p->x, p->x2, p->x3, p->y, y, d, d-p->dy, p->dy);
                        err++;