[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / libc / test / src / math / ilogbl_test.cpp
blobd7a8cc2013c13680aa7fd5089494196248b5f9f3
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 "src/__support/FPUtil/FPBits.h"
12 #include "src/__support/FPUtil/ManipulationFunctions.h"
13 #include "src/math/ilogbl.h"
14 #include "test/UnitTest/FPMatcher.h"
15 #include "test/UnitTest/Test.h"
16 #include <math.h>
18 using RunContext = __llvm_libc::testing::RunContext;
20 TEST_F(LlvmLibcILogbTest, SpecialNumbers_ilogbl) {
21 test_special_numbers<long double>(&__llvm_libc::ilogbl);
24 TEST_F(LlvmLibcILogbTest, PowersOfTwo_ilogbl) {
25 test_powers_of_two<long double>(&__llvm_libc::ilogbl);
28 TEST_F(LlvmLibcILogbTest, SomeIntegers_ilogbl) {
29 test_some_integers<long double>(&__llvm_libc::ilogbl);
32 TEST_F(LlvmLibcILogbTest, SubnormalRange_ilogbl) {
33 test_subnormal_range<long double>(&__llvm_libc::ilogbl);
36 TEST_F(LlvmLibcILogbTest, NormalRange_ilogbl) {
37 test_normal_range<long double>(&__llvm_libc::ilogbl);