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 //===----------------------------------------------------------------------===//
8
9 #include "FDimTest.h"
10
11 #include "src/math/fdiml.h"
12 #include "utils/FPUtil/FPBits.h"
13 #include "utils/FPUtil/TestHelpers.h"
14 #include "utils/UnitTest/Test.h"
15 #include <math.h>
16
17 using FDimTest = FDimTestTemplate<long double>;
18
TEST_F(FDimTest,NaNArg_fdiml)19 TEST_F(FDimTest, NaNArg_fdiml) { testNaNArg(&__llvm_libc::fdiml); }
20
TEST_F(FDimTest,InfArg_fdiml)21 TEST_F(FDimTest, InfArg_fdiml) { testInfArg(&__llvm_libc::fdiml); }
22
TEST_F(FDimTest,NegInfArg_fdiml)23 TEST_F(FDimTest, NegInfArg_fdiml) { testNegInfArg(&__llvm_libc::fdiml); }
24
TEST_F(FDimTest,BothZero_fdiml)25 TEST_F(FDimTest, BothZero_fdiml) { testBothZero(&__llvm_libc::fdiml); }
26
TEST_F(FDimTest,InLongDoubleRange_fdiml)27 TEST_F(FDimTest, InLongDoubleRange_fdiml) { testInRange(&__llvm_libc::fdiml); }
28