diff options
author | OverMighty <its.overmighty@gmail.com> | 2024-06-10 17:02:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-10 11:02:09 -0400 |
commit | 7683a16dbf4b676236c7698680de92d6510c2399 (patch) | |
tree | f0c1cc7566e5a2f9ff1e92e0b474ea219384a2ea /libc/test | |
parent | 472291111d9135961305afebe4e283e3e4e7eebc (diff) | |
download | llvm-7683a16dbf4b676236c7698680de92d6510c2399.zip llvm-7683a16dbf4b676236c7698680de92d6510c2399.tar.gz llvm-7683a16dbf4b676236c7698680de92d6510c2399.tar.bz2 |
[libc][math][c23] Add {remainder,remquo}f16 C23 math functions (#94773)
Part of #93566.
Diffstat (limited to 'libc/test')
-rw-r--r-- | libc/test/src/math/smoke/CMakeLists.txt | 16 | ||||
-rw-r--r-- | libc/test/src/math/smoke/RemQuoTest.h | 2 | ||||
-rw-r--r-- | libc/test/src/math/smoke/remquof16_test.cpp | 13 |
3 files changed, 26 insertions, 5 deletions
diff --git a/libc/test/src/math/smoke/CMakeLists.txt b/libc/test/src/math/smoke/CMakeLists.txt index 84aa76c..75e2bdd7 100644 --- a/libc/test/src/math/smoke/CMakeLists.txt +++ b/libc/test/src/math/smoke/CMakeLists.txt @@ -2608,7 +2608,6 @@ add_fp_unittest( RemQuoTest.h DEPENDS libc.src.math.remquof - libc.src.__support.FPUtil.basic_operations libc.src.__support.FPUtil.fp_bits ) @@ -2636,7 +2635,6 @@ add_fp_unittest( RemQuoTest.h DEPENDS libc.src.math.remquo - libc.src.__support.FPUtil.basic_operations libc.src.__support.FPUtil.fp_bits ) @@ -2650,7 +2648,19 @@ add_fp_unittest( RemQuoTest.h DEPENDS libc.src.math.remquol - libc.src.__support.FPUtil.basic_operations + libc.src.__support.FPUtil.fp_bits +) + +add_fp_unittest( + remquof16_test + SUITE + libc-math-smoke-tests + SRCS + remquof16_test.cpp + HDRS + RemQuoTest.h + DEPENDS + libc.src.math.remquof16 libc.src.__support.FPUtil.fp_bits ) diff --git a/libc/test/src/math/smoke/RemQuoTest.h b/libc/test/src/math/smoke/RemQuoTest.h index 43eee3d..e926326 100644 --- a/libc/test/src/math/smoke/RemQuoTest.h +++ b/libc/test/src/math/smoke/RemQuoTest.h @@ -9,8 +9,6 @@ #ifndef LLVM_LIBC_TEST_SRC_MATH_REMQUOTEST_H #define LLVM_LIBC_TEST_SRC_MATH_REMQUOTEST_H -#include "hdr/math_macros.h" -#include "src/__support/FPUtil/BasicOperations.h" #include "src/__support/FPUtil/FPBits.h" #include "test/UnitTest/FEnvSafeTest.h" #include "test/UnitTest/FPMatcher.h" diff --git a/libc/test/src/math/smoke/remquof16_test.cpp b/libc/test/src/math/smoke/remquof16_test.cpp new file mode 100644 index 0000000..18f2aba --- /dev/null +++ b/libc/test/src/math/smoke/remquof16_test.cpp @@ -0,0 +1,13 @@ +//===-- Unittests for remquof16 -------------------------------------------===// +// +// 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/remquof16.h" + +LIST_REMQUO_TESTS(float16, LIBC_NAMESPACE::remquof16) |