[clang-tidy][use-internal-linkage] fix false positive for consteval function (#122141)
[llvm-project.git] / libc / test / src / math / fdiml_test.cpp
blob2d99d2134c1c034dc92675d48ed36c4ac6778579
1 //===-- Unittests for fdiml -----------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #include "FDimTest.h"
11 #include "hdr/math_macros.h"
12 #include "src/__support/FPUtil/FPBits.h"
13 #include "src/math/fdiml.h"
14 #include "test/UnitTest/FPMatcher.h"
15 #include "test/UnitTest/Test.h"
17 using LlvmLibcFDimTest = FDimTestTemplate<long double>;
19 TEST_F(LlvmLibcFDimTest, NaNArg_fdiml) {
20 test_na_n_arg(&LIBC_NAMESPACE::fdiml);
23 TEST_F(LlvmLibcFDimTest, InfArg_fdiml) { test_inf_arg(&LIBC_NAMESPACE::fdiml); }
25 TEST_F(LlvmLibcFDimTest, NegInfArg_fdiml) {
26 test_neg_inf_arg(&LIBC_NAMESPACE::fdiml);
29 TEST_F(LlvmLibcFDimTest, BothZero_fdiml) {
30 test_both_zero(&LIBC_NAMESPACE::fdiml);
33 TEST_F(LlvmLibcFDimTest, InLongDoubleRange_fdiml) {
34 test_in_range(&LIBC_NAMESPACE::fdiml);