[libc-commits] [libc] [libc][math][test] add missed mpfr test for `ceilf128` (PR #182201)
via libc-commits
libc-commits at lists.llvm.org
Wed Feb 18 16:59:06 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Mohamed Emad (hulxv)
<details>
<summary>Changes</summary>
This PR adds an MPFR test for `ceilf128` that was missed.
CC: @<!-- -->lntue
---
Full diff: https://github.com/llvm/llvm-project/pull/182201.diff
2 Files Affected:
- (modified) libc/test/src/math/CMakeLists.txt (+15)
- (added) libc/test/src/math/ceilf128_test.cpp (+13)
``````````diff
diff --git a/libc/test/src/math/CMakeLists.txt b/libc/test/src/math/CMakeLists.txt
index ff5c511922171..83cf506968b9b 100644
--- a/libc/test/src/math/CMakeLists.txt
+++ b/libc/test/src/math/CMakeLists.txt
@@ -399,6 +399,21 @@ add_fp_unittest(
libc.src.__support.FPUtil.fp_bits
)
+add_fp_unittest(
+ ceilf128_test
+ NEED_MPFR
+ SUITE
+ libc-math-unittests
+ SRCS
+ ceilf128_test.cpp
+ HDRS
+ CeilTest.h
+ DEPENDS
+ libc.src.math.ceilf128
+ libc.src.__support.CPP.algorithm
+ libc.src.__support.FPUtil.fp_bits
+)
+
add_fp_unittest(
ceilf_test
NEED_MPFR
diff --git a/libc/test/src/math/ceilf128_test.cpp b/libc/test/src/math/ceilf128_test.cpp
new file mode 100644
index 0000000000000..f0da8258f79bc
--- /dev/null
+++ b/libc/test/src/math/ceilf128_test.cpp
@@ -0,0 +1,13 @@
+//===-- Unittests for ceilf128 --------------------------------------------===//
+//
+// 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 "CeilTest.h"
+
+#include "src/math/ceilf128.h"
+
+LIST_CEIL_TESTS(float128, LIBC_NAMESPACE::ceilf128)
``````````
</details>
https://github.com/llvm/llvm-project/pull/182201
More information about the libc-commits
mailing list