[libc-commits] [libc] 8a1dff7 - [libc][math][test] add missed mpfr test for `ceilf128` (#182201)
via libc-commits
libc-commits at lists.llvm.org
Wed Feb 18 22:43:47 PST 2026
Author: Mohamed Emad
Date: 2026-02-19T08:43:42+02:00
New Revision: 8a1dff765c229f369370363198c92236cd821044
URL: https://github.com/llvm/llvm-project/commit/8a1dff765c229f369370363198c92236cd821044
DIFF: https://github.com/llvm/llvm-project/commit/8a1dff765c229f369370363198c92236cd821044.diff
LOG: [libc][math][test] add missed mpfr test for `ceilf128` (#182201)
This PR adds an MPFR test for `ceilf128` that was missed.
Added:
libc/test/src/math/ceilf128_test.cpp
Modified:
libc/test/src/math/CMakeLists.txt
Removed:
################################################################################
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)
More information about the libc-commits
mailing list