aboutsummaryrefslogtreecommitdiff
path: root/libc/test/src/math/hypotf16_test.cpp
blob: 37d57471a3c74bb94c1b7c1967dd59c571843b60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//===-- Unittests for hypotf16 --------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "HypotTest.h"

#include "src/math/hypotf16.h"

using LlvmLibcHypotf16Test = HypotTestTemplate<float16>;

TEST_F(LlvmLibcHypotf16Test, SubnormalRange) {
  test_subnormal_range(&LIBC_NAMESPACE::hypotf16);
}

TEST_F(LlvmLibcHypotf16Test, NormalRange) {
  test_normal_range(&LIBC_NAMESPACE::hypotf16);
}