• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===-- Unittests for fdimf -----------------------------------------------===//
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/fdimf.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<float>;
18 
TEST_F(FDimTest,NaNArg_fdimf)19 TEST_F(FDimTest, NaNArg_fdimf) { testNaNArg(&__llvm_libc::fdimf); }
20 
TEST_F(FDimTest,InfArg_fdimf)21 TEST_F(FDimTest, InfArg_fdimf) { testInfArg(&__llvm_libc::fdimf); }
22 
TEST_F(FDimTest,NegInfArg_fdimf)23 TEST_F(FDimTest, NegInfArg_fdimf) { testNegInfArg(&__llvm_libc::fdimf); }
24 
TEST_F(FDimTest,BothZero_fdimf)25 TEST_F(FDimTest, BothZero_fdimf) { testBothZero(&__llvm_libc::fdimf); }
26 
TEST_F(FDimTest,InFloatRange_fdimf)27 TEST_F(FDimTest, InFloatRange_fdimf) { testInRange(&__llvm_libc::fdimf); }
28