• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===-- Unittests for fdim ------------------------------------------------===//
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/fdim.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<double>;
18 
TEST_F(FDimTest,NaNArg_fdim)19 TEST_F(FDimTest, NaNArg_fdim) { testNaNArg(&__llvm_libc::fdim); }
20 
TEST_F(FDimTest,InfArg_fdim)21 TEST_F(FDimTest, InfArg_fdim) { testInfArg(&__llvm_libc::fdim); }
22 
TEST_F(FDimTest,NegInfArg_fdim)23 TEST_F(FDimTest, NegInfArg_fdim) { testNegInfArg(&__llvm_libc::fdim); }
24 
TEST_F(FDimTest,BothZero_fdim)25 TEST_F(FDimTest, BothZero_fdim) { testBothZero(&__llvm_libc::fdim); }
26 
TEST_F(FDimTest,InDoubleRange_fdim)27 TEST_F(FDimTest, InDoubleRange_fdim) { testInRange(&__llvm_libc::fdim); }
28