1 //===-- Unittests for ilogbf ----------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
11 #include "src/__support/FPUtil/FPBits.h"
12 #include "src/__support/FPUtil/ManipulationFunctions.h"
13 #include "src/math/ilogbf.h"
14 #include "test/UnitTest/FPMatcher.h"
15 #include "test/UnitTest/Test.h"
18 TEST_F(LlvmLibcILogbTest
, SpecialNumbers_ilogbf
) {
19 test_special_numbers
<float>(&LIBC_NAMESPACE::ilogbf
);
22 TEST_F(LlvmLibcILogbTest
, PowersOfTwo_ilogbf
) {
23 test_powers_of_two
<float>(&LIBC_NAMESPACE::ilogbf
);
26 TEST_F(LlvmLibcILogbTest
, SomeIntegers_ilogbf
) {
27 test_some_integers
<float>(&LIBC_NAMESPACE::ilogbf
);
30 TEST_F(LlvmLibcILogbTest
, SubnormalRange_ilogbf
) {
31 test_subnormal_range
<float>(&LIBC_NAMESPACE::ilogbf
);
34 TEST_F(LlvmLibcILogbTest
, NormalRange_ilogbf
) {
35 test_normal_range
<float>(&LIBC_NAMESPACE::ilogbf
);