math: add special case test vectors
[libc-test] / src / math / special / ilogbl.h
diff --git a/src/math/special/ilogbl.h b/src/math/special/ilogbl.h
new file mode 100644 (file)
index 0000000..d3a8d2a
--- /dev/null
@@ -0,0 +1,9 @@
+T(RN,                  0x0p+0, FP_ILOGB0, INVALID)
+T(RN,                 -0x0p+0, FP_ILOGB0, INVALID)
+T(RN,               -0x1p-100, -100, 0)
+T(RN,                  0x1p+0, 0, 0)
+T(RN,                 -0x1p+0, 0, 0)
+T(RN,                     inf, -1U/2, INVALID)
+T(RN,                    -inf, -1U/2, INVALID)
+T(RN,                     nan, FP_ILOGBNAN, INVALID)
+T(RN,             0x1p-16445L, -16445, 0)