[libc-commits] [libc] [libc][math][test] add missed mpfr test for `ceilf128` (PR #182201)

Mohamed Emad via libc-commits libc-commits at lists.llvm.org
Wed Feb 18 16:58:31 PST 2026


https://github.com/hulxv created https://github.com/llvm/llvm-project/pull/182201

This PR adds an MPFR test for `ceilf128` that was missed.

CC: @lntue 

>From ea832975dec830db244f3f00a4ceb08a3b4c7dbf Mon Sep 17 00:00:00 2001
From: hulxv <hulxxv at gmail.com>
Date: Thu, 19 Feb 2026 02:56:54 +0200
Subject: [PATCH] [libc][math][test] add missed mpfr test for `ceilf128`

---
 libc/test/src/math/CMakeLists.txt    | 15 +++++++++++++++
 libc/test/src/math/ceilf128_test.cpp | 13 +++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 libc/test/src/math/ceilf128_test.cpp

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