[AMDGPU] Replace unsigned with Register in SIMachineScheduler. NFC
[llvm-project.git] / libc / test / src / math / fdimf_test.cpp
blob13e61d9082da42799ce72a3adab174716694c8ba
1 //===-- Unittests for fdimf -----------------------------------------------===//
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 "hdr/math_macros.h"
12 #include "src/__support/FPUtil/FPBits.h"
13 #include "src/math/fdimf.h"
14 #include "test/UnitTest/FPMatcher.h"
15 #include "test/UnitTest/Test.h"
17 using LlvmLibcFDimTest = FDimTestTemplate<float>;
19 TEST_F(LlvmLibcFDimTest, NaNArg_fdimf) {
20 test_na_n_arg(&LIBC_NAMESPACE::fdimf);
23 TEST_F(LlvmLibcFDimTest, InfArg_fdimf) { test_inf_arg(&LIBC_NAMESPACE::fdimf); }
25 TEST_F(LlvmLibcFDimTest, NegInfArg_fdimf) {
26 test_neg_inf_arg(&LIBC_NAMESPACE::fdimf);
29 TEST_F(LlvmLibcFDimTest, BothZero_fdimf) {
30 test_both_zero(&LIBC_NAMESPACE::fdimf);
33 TEST_F(LlvmLibcFDimTest, InFloatRange_fdimf) {
34 test_in_range(&LIBC_NAMESPACE::fdimf);