summaryrefslogtreecommitdiff
path: root/libc/test/src/math/truncf16_test.cpp
diff options
context:
space:
mode:
authorOverMighty <its.overmighty@gmail.com>2024-06-05 18:38:15 +0200
committerGitHub <noreply@github.com>2024-06-05 12:38:15 -0400
commitfda1e4b01f723c31a36ad659564ae4a61365930e (patch)
tree8ff4c4f8382a05a74d09196b2f38b3705bd5cfa8 /libc/test/src/math/truncf16_test.cpp
parentaa512943f47548beab655a5228c23b5503d480f8 (diff)
[libc][math][c23] Add MPFR unit tests for {ceil,floor,round,roundeven,trunc}f16 (#94383)
Diffstat (limited to 'libc/test/src/math/truncf16_test.cpp')
-rw-r--r--libc/test/src/math/truncf16_test.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/libc/test/src/math/truncf16_test.cpp b/libc/test/src/math/truncf16_test.cpp
new file mode 100644
index 000000000000..832d88ec84f8
--- /dev/null
+++ b/libc/test/src/math/truncf16_test.cpp
@@ -0,0 +1,13 @@
+//===-- Unittests for truncf16 --------------------------------------------===//
+//
+// 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 "TruncTest.h"
+
+#include "src/math/truncf16.h"
+
+LIST_TRUNC_TESTS(float16, LIBC_NAMESPACE::truncf16)