1 //===-- Unittests for hypotf ----------------------------------------------===//
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
7 //===----------------------------------------------------------------------===//
10 #include "hypotf_hard_to_round.h"
12 #include "src/math/hypotf.h"
14 using LlvmLibcHypotfTest
= HypotTestTemplate
<float>;
16 TEST_F(LlvmLibcHypotfTest
, SpecialNumbers
) {
17 test_special_numbers(&__llvm_libc::hypotf
);
20 TEST_F(LlvmLibcHypotfTest
, SubnormalRange
) {
21 test_subnormal_range(&__llvm_libc::hypotf
);
24 TEST_F(LlvmLibcHypotfTest
, NormalRange
) {
25 test_normal_range(&__llvm_libc::hypotf
);
28 TEST_F(LlvmLibcHypotfTest
, TrickyInputs
) {
29 test_input_list(&__llvm_libc::hypotf
, N_HARD_TO_ROUND
, HYPOTF_HARD_TO_ROUND
);