1 //===-- Unittests for ilogbl ----------------------------------------------===//
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 "ILogbTest.h"
10 
11 #include "src/__support/FPUtil/FPBits.h"
12 #include "src/__support/FPUtil/ManipulationFunctions.h"
13 #include "src/math/ilogbl.h"
14 #include "utils/UnitTest/FPMatcher.h"
15 #include "utils/UnitTest/Test.h"
16 #include <math.h>
17 
18 using RunContext = __llvm_libc::testing::RunContext;
19 
20 TEST_F(LlvmLibcILogbTest, SpecialNumbers_ilogbl) {
21   testSpecialNumbers<long double>(&__llvm_libc::ilogbl);
22 }
23 
24 TEST_F(LlvmLibcILogbTest, PowersOfTwo_ilogbl) {
25   testPowersOfTwo<long double>(&__llvm_libc::ilogbl);
26 }
27 
28 TEST_F(LlvmLibcILogbTest, SomeIntegers_ilogbl) {
29   testSomeIntegers<long double>(&__llvm_libc::ilogbl);
30 }
31 
32 TEST_F(LlvmLibcILogbTest, SubnormalRange_ilogbl) {
33   testSubnormalRange<long double>(&__llvm_libc::ilogbl);
34 }
35 
36 TEST_F(LlvmLibcILogbTest, NormalRange_ilogbl) {
37   testNormalRange<long double>(&__llvm_libc::ilogbl);
38 }
39