[flang] Accept polymorphic component element in storage_size
[llvm-project.git] / libc / test / src / math / fdiml_test.cpp
blobbb6c54d567a0b2842c6e87cfa27f1ca04b6b6595
1 //===-- Unittests for fdiml -----------------------------------------------===//
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 "FDimTest.h"
11 #include "src/__support/FPUtil/FPBits.h"
12 #include "src/math/fdiml.h"
13 #include "test/UnitTest/FPMatcher.h"
14 #include "test/UnitTest/Test.h"
15 #include <math.h>
17 using LlvmLibcFDimTest = FDimTestTemplate<long double>;
19 TEST_F(LlvmLibcFDimTest, NaNArg_fdiml) { test_na_n_arg(&__llvm_libc::fdiml); }
21 TEST_F(LlvmLibcFDimTest, InfArg_fdiml) { test_inf_arg(&__llvm_libc::fdiml); }
23 TEST_F(LlvmLibcFDimTest, NegInfArg_fdiml) {
24 test_neg_inf_arg(&__llvm_libc::fdiml);
27 TEST_F(LlvmLibcFDimTest, BothZero_fdiml) {
28 test_both_zero(&__llvm_libc::fdiml);
31 TEST_F(LlvmLibcFDimTest, InLongDoubleRange_fdiml) {
32 test_in_range(&__llvm_libc::fdiml);