math: add special case test vectors
[libc-test] / src / math / special / scalbnl.h
diff --git a/src/math/special/scalbnl.h b/src/math/special/scalbnl.h
new file mode 100644 (file)
index 0000000..cea8e15
--- /dev/null
@@ -0,0 +1,14 @@
+T(RN,                        0x0p+0L,  2147483647,                        0x0p+0L,          0x0p+0, 0)
+T(RN,                        0x0p+0L, -2147483647,                        0x0p+0L,          0x0p+0, 0)
+T(RN,                       -0x0p+0L,  2147483647,                       -0x0p+0L,          0x0p+0, 0)
+T(RN,                            nan,           0,                            nan,          0x0p+0, 0)
+T(RN,                            inf,           0,                            inf,          0x0p+0, 0)
+T(RN,                           -inf,           0,                           -inf,          0x0p+0, 0)
+T(RN,                        0x1p+0L,           0,                        0x1p+0L,          0x0p+0, 0)
+T(RN,                        0x1p+0L,           1,                        0x1p+1L,          0x0p+0, 0)
+T(RN,                        0x1p+0L,          -1,                        0x1p-1L,          0x0p+0, 0)
+T(RN,                        0x1p+0L,  2147483647,                            inf,          0x0p+0, INEXACT|OVERFLOW)
+T(RN,                            nan,           1,                            nan,          0x0p+0, 0)
+T(RN,                            inf,  2147483647,                            inf,          0x0p+0, 0)
+T(RN,                            inf, -2147483647,                            inf,          0x0p+0, 0)
+T(RN,                           -inf,  2147483647,                           -inf,          0x0p+0, 0)