diff options
Diffstat (limited to 'libc/test/src/math/f16fmaf_test.cpp')
| -rw-r--r-- | libc/test/src/math/f16fmaf_test.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libc/test/src/math/f16fmaf_test.cpp b/libc/test/src/math/f16fmaf_test.cpp new file mode 100644 index 000000000000..e4ca88b8810e --- /dev/null +++ b/libc/test/src/math/f16fmaf_test.cpp @@ -0,0 +1,21 @@ +//===-- Unittests for f16fmaf ---------------------------------------------===// +// +// 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 "FmaTest.h" + +#include "src/math/f16fmaf.h" + +using LlvmLibcF16fmafTest = FmaTestTemplate<float16, float>; + +TEST_F(LlvmLibcF16fmafTest, SubnormalRange) { + test_subnormal_range(&LIBC_NAMESPACE::f16fmaf); +} + +TEST_F(LlvmLibcF16fmafTest, NormalRange) { + test_normal_range(&LIBC_NAMESPACE::f16fmaf); +} |
