diff options
Diffstat (limited to 'libc/test')
-rw-r--r-- | libc/test/src/math/CMakeLists.txt | 52 | ||||
-rw-r--r-- | libc/test/src/math/f16add_test.cpp | 13 | ||||
-rw-r--r-- | libc/test/src/math/f16addl_test.cpp | 13 | ||||
-rw-r--r-- | libc/test/src/math/f16sub_test.cpp | 13 | ||||
-rw-r--r-- | libc/test/src/math/f16subl_test.cpp | 13 | ||||
-rw-r--r-- | libc/test/src/math/smoke/CMakeLists.txt | 87 | ||||
-rw-r--r-- | libc/test/src/math/smoke/f16add_test.cpp | 13 | ||||
-rw-r--r-- | libc/test/src/math/smoke/f16addf128_test.cpp | 13 | ||||
-rw-r--r-- | libc/test/src/math/smoke/f16addl_test.cpp | 13 | ||||
-rw-r--r-- | libc/test/src/math/smoke/f16sub_test.cpp | 13 | ||||
-rw-r--r-- | libc/test/src/math/smoke/f16subf128_test.cpp | 13 | ||||
-rw-r--r-- | libc/test/src/math/smoke/f16subl_test.cpp | 13 |
12 files changed, 269 insertions, 0 deletions
diff --git a/libc/test/src/math/CMakeLists.txt b/libc/test/src/math/CMakeLists.txt index 637e672..f919634 100644 --- a/libc/test/src/math/CMakeLists.txt +++ b/libc/test/src/math/CMakeLists.txt @@ -1997,6 +1997,19 @@ add_fp_unittest( ) add_fp_unittest( + f16add_test + NEED_MPFR + SUITE + libc-math-unittests + SRCS + f16add_test.cpp + HDRS + AddTest.h + DEPENDS + libc.src.math.f16add +) + +add_fp_unittest( f16addf_test NEED_MPFR SUITE @@ -2010,6 +2023,32 @@ add_fp_unittest( ) add_fp_unittest( + f16addl_test + NEED_MPFR + SUITE + libc-math-unittests + SRCS + f16addl_test.cpp + HDRS + AddTest.h + DEPENDS + libc.src.math.f16addl +) + +add_fp_unittest( + f16sub_test + NEED_MPFR + SUITE + libc-math-unittests + SRCS + f16sub_test.cpp + HDRS + SubTest.h + DEPENDS + libc.src.math.f16sub +) + +add_fp_unittest( f16subf_test NEED_MPFR SUITE @@ -2023,6 +2062,19 @@ add_fp_unittest( ) add_fp_unittest( + f16subl_test + NEED_MPFR + SUITE + libc-math-unittests + SRCS + f16subl_test.cpp + HDRS + SubTest.h + DEPENDS + libc.src.math.f16subl +) + +add_fp_unittest( f16div_test NEED_MPFR SUITE diff --git a/libc/test/src/math/f16add_test.cpp b/libc/test/src/math/f16add_test.cpp new file mode 100644 index 0000000..c47ece2 --- /dev/null +++ b/libc/test/src/math/f16add_test.cpp @@ -0,0 +1,13 @@ +//===-- Unittests for f16add ----------------------------------------------===// +// +// 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 "AddTest.h" + +#include "src/math/f16add.h" + +LIST_ADD_TESTS(float16, double, LIBC_NAMESPACE::f16add) diff --git a/libc/test/src/math/f16addl_test.cpp b/libc/test/src/math/f16addl_test.cpp new file mode 100644 index 0000000..f8e0d9b --- /dev/null +++ b/libc/test/src/math/f16addl_test.cpp @@ -0,0 +1,13 @@ +//===-- Unittests for f16addl ---------------------------------------------===// +// +// 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 "AddTest.h" + +#include "src/math/f16addl.h" + +LIST_ADD_TESTS(float16, long double, LIBC_NAMESPACE::f16addl) diff --git a/libc/test/src/math/f16sub_test.cpp b/libc/test/src/math/f16sub_test.cpp new file mode 100644 index 0000000..37b9709 --- /dev/null +++ b/libc/test/src/math/f16sub_test.cpp @@ -0,0 +1,13 @@ +//===-- Unittests for f16sub ----------------------------------------------===/ +// +// 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 "SubTest.h" + +#include "src/math/f16sub.h" + +LIST_SUB_TESTS(float16, double, LIBC_NAMESPACE::f16sub) diff --git a/libc/test/src/math/f16subl_test.cpp b/libc/test/src/math/f16subl_test.cpp new file mode 100644 index 0000000..c41e6e9 --- /dev/null +++ b/libc/test/src/math/f16subl_test.cpp @@ -0,0 +1,13 @@ +//===-- Unittests for f16subl ---------------------------------------------===// +// +// 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 "SubTest.h" + +#include "src/math/f16subl.h" + +LIST_SUB_TESTS(float16, long double, LIBC_NAMESPACE::f16subl) diff --git a/libc/test/src/math/smoke/CMakeLists.txt b/libc/test/src/math/smoke/CMakeLists.txt index 1b269ed..f244e7a 100644 --- a/libc/test/src/math/smoke/CMakeLists.txt +++ b/libc/test/src/math/smoke/CMakeLists.txt @@ -3644,6 +3644,21 @@ add_fp_unittest( ) add_fp_unittest( + f16add_test + SUITE + libc-math-smoke-tests + SRCS + f16add_test.cpp + HDRS + AddTest.h + DEPENDS + libc.hdr.errno_macros + libc.hdr.fenv_macros + libc.src.__support.FPUtil.basic_operations + libc.src.math.f16add +) + +add_fp_unittest( f16addf_test SUITE libc-math-smoke-tests @@ -3659,6 +3674,50 @@ add_fp_unittest( ) add_fp_unittest( + f16addl_test + SUITE + libc-math-smoke-tests + SRCS + f16addl_test.cpp + HDRS + AddTest.h + DEPENDS + libc.hdr.errno_macros + libc.hdr.fenv_macros + libc.src.__support.FPUtil.basic_operations + libc.src.math.f16addl +) + +add_fp_unittest( + f16addf128_test + SUITE + libc-math-smoke-tests + SRCS + f16addf128_test.cpp + HDRS + AddTest.h + DEPENDS + libc.hdr.errno_macros + libc.hdr.fenv_macros + libc.src.__support.FPUtil.basic_operations + libc.src.math.f16addf128 +) + +add_fp_unittest( + f16sub_test + SUITE + libc-math-smoke-tests + SRCS + f16sub_test.cpp + HDRS + SubTest.h + DEPENDS + libc.hdr.fenv_macros + libc.src.__support.FPUtil.basic_operations + libc.src.math.f16sub +) + +add_fp_unittest( f16subf_test SUITE libc-math-smoke-tests @@ -3673,6 +3732,34 @@ add_fp_unittest( ) add_fp_unittest( + f16subl_test + SUITE + libc-math-smoke-tests + SRCS + f16subl_test.cpp + HDRS + SubTest.h + DEPENDS + libc.hdr.fenv_macros + libc.src.__support.FPUtil.basic_operations + libc.src.math.f16subl +) + +add_fp_unittest( + f16subf128_test + SUITE + libc-math-smoke-tests + SRCS + f16subf128_test.cpp + HDRS + SubTest.h + DEPENDS + libc.hdr.fenv_macros + libc.src.__support.FPUtil.basic_operations + libc.src.math.f16subf128 +) + +add_fp_unittest( f16div_test SUITE libc-math-smoke-tests diff --git a/libc/test/src/math/smoke/f16add_test.cpp b/libc/test/src/math/smoke/f16add_test.cpp new file mode 100644 index 0000000..c47ece2 --- /dev/null +++ b/libc/test/src/math/smoke/f16add_test.cpp @@ -0,0 +1,13 @@ +//===-- Unittests for f16add ----------------------------------------------===// +// +// 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 "AddTest.h" + +#include "src/math/f16add.h" + +LIST_ADD_TESTS(float16, double, LIBC_NAMESPACE::f16add) diff --git a/libc/test/src/math/smoke/f16addf128_test.cpp b/libc/test/src/math/smoke/f16addf128_test.cpp new file mode 100644 index 0000000..8ed123b --- /dev/null +++ b/libc/test/src/math/smoke/f16addf128_test.cpp @@ -0,0 +1,13 @@ +//===-- Unittests for f16addf128 ------------------------------------------===// +// +// 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 "AddTest.h" + +#include "src/math/f16addf128.h" + +LIST_ADD_TESTS(float16, float128, LIBC_NAMESPACE::f16addf128) diff --git a/libc/test/src/math/smoke/f16addl_test.cpp b/libc/test/src/math/smoke/f16addl_test.cpp new file mode 100644 index 0000000..f8e0d9b --- /dev/null +++ b/libc/test/src/math/smoke/f16addl_test.cpp @@ -0,0 +1,13 @@ +//===-- Unittests for f16addl ---------------------------------------------===// +// +// 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 "AddTest.h" + +#include "src/math/f16addl.h" + +LIST_ADD_TESTS(float16, long double, LIBC_NAMESPACE::f16addl) diff --git a/libc/test/src/math/smoke/f16sub_test.cpp b/libc/test/src/math/smoke/f16sub_test.cpp new file mode 100644 index 0000000..4ab347b --- /dev/null +++ b/libc/test/src/math/smoke/f16sub_test.cpp @@ -0,0 +1,13 @@ +//===-- Unittests for f16sub ----------------------------------------------===// +// +// 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 "SubTest.h" + +#include "src/math/f16sub.h" + +LIST_SUB_TESTS(float16, double, LIBC_NAMESPACE::f16sub) diff --git a/libc/test/src/math/smoke/f16subf128_test.cpp b/libc/test/src/math/smoke/f16subf128_test.cpp new file mode 100644 index 0000000..4936d89 --- /dev/null +++ b/libc/test/src/math/smoke/f16subf128_test.cpp @@ -0,0 +1,13 @@ +//===-- Unittests for f16subf128 ------------------------------------------===// +// +// 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 "SubTest.h" + +#include "src/math/f16subf128.h" + +LIST_SUB_TESTS(float16, float128, LIBC_NAMESPACE::f16subf128) diff --git a/libc/test/src/math/smoke/f16subl_test.cpp b/libc/test/src/math/smoke/f16subl_test.cpp new file mode 100644 index 0000000..c41e6e9 --- /dev/null +++ b/libc/test/src/math/smoke/f16subl_test.cpp @@ -0,0 +1,13 @@ +//===-- Unittests for f16subl ---------------------------------------------===// +// +// 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 "SubTest.h" + +#include "src/math/f16subl.h" + +LIST_SUB_TESTS(float16, long double, LIBC_NAMESPACE::f16subl) |