aboutsummaryrefslogtreecommitdiff
path: root/libc/test
diff options
context:
space:
mode:
authorHendrik Hübner <117831077+HendrikHuebner@users.noreply.github.com>2024-06-08 21:08:45 +0200
committerGitHub <noreply@github.com>2024-06-08 15:08:45 -0400
commit44aecca020317fc163fc6f253b03d07828f1d231 (patch)
tree90e88029e00482b995738eda5dd6fa374ba3da5a /libc/test
parent263be9fb0085001630e0431782a0ac0da7ab58ae (diff)
downloadllvm-44aecca020317fc163fc6f253b03d07828f1d231.zip
llvm-44aecca020317fc163fc6f253b03d07828f1d231.tar.gz
llvm-44aecca020317fc163fc6f253b03d07828f1d231.tar.bz2
[libc][math][C23] Implemented remquof128 function (#94809)
Added remquof128 function. Closes #94312
Diffstat (limited to 'libc/test')
-rw-r--r--libc/test/src/math/smoke/CMakeLists.txt14
-rw-r--r--libc/test/src/math/smoke/remquof128_test.cpp13
2 files changed, 27 insertions, 0 deletions
diff --git a/libc/test/src/math/smoke/CMakeLists.txt b/libc/test/src/math/smoke/CMakeLists.txt
index 8d5b4e6..dfda1bc 100644
--- a/libc/test/src/math/smoke/CMakeLists.txt
+++ b/libc/test/src/math/smoke/CMakeLists.txt
@@ -2528,6 +2528,20 @@ add_fp_unittest(
)
add_fp_unittest(
+ remquof128_test
+ SUITE
+ libc-math-smoke-tests
+ SRCS
+ remquof128_test.cpp
+ HDRS
+ RemQuoTest.h
+ DEPENDS
+ libc.src.math.remquof128
+ libc.src.__support.FPUtil.basic_operations
+ libc.src.__support.FPUtil.fp_bits
+)
+
+add_fp_unittest(
remquo_test
SUITE
libc-math-smoke-tests
diff --git a/libc/test/src/math/smoke/remquof128_test.cpp b/libc/test/src/math/smoke/remquof128_test.cpp
new file mode 100644
index 0000000..8ef6c3b
--- /dev/null
+++ b/libc/test/src/math/smoke/remquof128_test.cpp
@@ -0,0 +1,13 @@
+//===-- Unittests for remquof128 ------------------------------------------===//
+//
+// 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 "RemQuoTest.h"
+
+#include "src/math/remquof128.h"
+
+LIST_REMQUO_TESTS(float128, LIBC_NAMESPACE::remquof128)