Revert "[lldb][test] Remove compiler version check and use regex" (#124101)
[llvm-project.git] / libc / test / src / math / ilogbl_test.cpp
blob042a803b024a7e2d571314e8a22953bb3c1893d5
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 //===----------------------------------------------------------------------===//
9 #include "ILogbTest.h"
11 #include "hdr/math_macros.h"
12 #include "src/__support/FPUtil/FPBits.h"
13 #include "src/__support/FPUtil/ManipulationFunctions.h"
14 #include "src/math/ilogbl.h"
15 #include "test/UnitTest/FPMatcher.h"
16 #include "test/UnitTest/Test.h"
18 TEST_F(LlvmLibcILogbTest, SpecialNumbers_ilogbl) {
19 test_special_numbers<long double>(&LIBC_NAMESPACE::ilogbl);
22 TEST_F(LlvmLibcILogbTest, PowersOfTwo_ilogbl) {
23 test_powers_of_two<long double>(&LIBC_NAMESPACE::ilogbl);
26 TEST_F(LlvmLibcILogbTest, SomeIntegers_ilogbl) {
27 test_some_integers<long double>(&LIBC_NAMESPACE::ilogbl);
30 TEST_F(LlvmLibcILogbTest, SubnormalRange_ilogbl) {
31 test_subnormal_range<long double>(&LIBC_NAMESPACE::ilogbl);
34 TEST_F(LlvmLibcILogbTest, NormalRange_ilogbl) {
35 test_normal_range<long double>(&LIBC_NAMESPACE::ilogbl);