[X86] lowerV4F64Shuffle - prefer lowerShuffleAsDecomposedShuffleMerge if we're blendi...
[llvm-project.git] / libc / test / src / math / exhaustive / acoshf_test.cpp
blobeff8b64a7dae1a01bb8d27148bd28a78e53421a1
1 //===-- Exhaustive test for acoshf ----------------------------------------===//
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 "exhaustive_test.h"
10 #include "src/math/acoshf.h"
11 #include "utils/MPFRWrapper/MPFRUtils.h"
13 namespace mpfr = LIBC_NAMESPACE::testing::mpfr;
15 using LlvmLibcAcoshfExhaustiveTest =
16 LlvmLibcUnaryOpExhaustiveMathTest<float, mpfr::Operation::Acosh,
17 LIBC_NAMESPACE::acoshf>;
19 // Range: [1, Inf];
20 static constexpr uint32_t POS_START = 0x3f80'0000U;
21 static constexpr uint32_t POS_STOP = 0x7f80'0000U;
23 TEST_F(LlvmLibcAcoshfExhaustiveTest, PostiveRangeRound) {
24 test_full_range_all_roundings(POS_START, POS_STOP);