summaryrefslogtreecommitdiff
path: root/libc/test/src/math/smoke/iscanonicalbf16_test.cpp
diff options
context:
space:
mode:
authorKrishna Pandey <kpandey81930@gmail.com>2025-08-27 22:31:17 +0530
committerGitHub <noreply@github.com>2025-08-27 22:31:17 +0530
commit3d2b2820440170f46fbf8514061b58c3e8dc07bc (patch)
treea35efb4f25728b87c7d3de2b2d4a86964218575a /libc/test/src/math/smoke/iscanonicalbf16_test.cpp
parent90d429ca5762264ff932995a2bdce2fc2f155688 (diff)
[libc][math][c++23] Add {canonicalize,iscanonical,fdim,copysign,issignaling}bf16 math functions (#155567)
This PR adds the following basic math functions for BFloat16 type along with the tests: - canonicalizebf16 - iscanonicalbf16 - fdimbf16 - copysignbf16 - issignalingbf16 --------- Signed-off-by: Krishna Pandey <kpandey81930@gmail.com>
Diffstat (limited to 'libc/test/src/math/smoke/iscanonicalbf16_test.cpp')
-rw-r--r--libc/test/src/math/smoke/iscanonicalbf16_test.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/libc/test/src/math/smoke/iscanonicalbf16_test.cpp b/libc/test/src/math/smoke/iscanonicalbf16_test.cpp
new file mode 100644
index 000000000000..3d735882e82a
--- /dev/null
+++ b/libc/test/src/math/smoke/iscanonicalbf16_test.cpp
@@ -0,0 +1,14 @@
+//===-- Unittests for iscanonicalbf16 -------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "IsCanonicalTest.h"
+
+#include "src/__support/FPUtil/bfloat16.h"
+#include "src/math/iscanonicalbf16.h"
+
+LIST_ISCANONICAL_TESTS(bfloat16, LIBC_NAMESPACE::iscanonicalbf16)