Skip to content

[libc][math][c23] Add MPFR unit test for f16sqrtf #97062

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions libc/test/src/math/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2005,6 +2005,19 @@ add_fp_unittest(
libc.src.math.f16sqrt
)

add_fp_unittest(
f16sqrtf_test
NEED_MPFR
SUITE
libc-math-unittests
SRCS
f16sqrtf_test.cpp
HDRS
SqrtTest.h
DEPENDS
libc.src.math.f16sqrtf
)

add_fp_unittest(
f16sqrtl_test
NEED_MPFR
Expand Down
13 changes: 13 additions & 0 deletions libc/test/src/math/f16sqrtf_test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//===-- Unittests for f16sqrtf --------------------------------------------===//
//
// 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 "SqrtTest.h"

#include "src/math/f16sqrtf.h"

LIST_NARROWING_SQRT_TESTS(float16, float, LIBC_NAMESPACE::f16sqrtf)
Loading