blob: d4762394f73f597bb61d69bef23aae6db429234c [file]
//===----------------------------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
///
/// \file
/// This file contains exhaustive tests for single-precision SIMD sin.
///
//===----------------------------------------------------------------------===//
#include "exhaustive_test.h"
#include "src/__support/CPP/simd.h"
#include "src/__support/macros/optimization.h"
// Keep the scalar reference correctly rounded in every build configuration.
#undef LIBC_MATH_HAS_SKIP_ACCURATE_PASS
#include "src/__support/math/sinf_double_eval.h"
#include "src/mathvec/sinf.h"
using LlvmLibcSinfExhaustiveTest = LlvmLibcUnaryOpExhaustiveMathvecTest<
float, LIBC_NAMESPACE::math::double_eval::sinf, LIBC_NAMESPACE::sinf>;
// Tests all possible 32-bit input patterns
TEST_F(LlvmLibcSinfExhaustiveTest, EntireRange) { test_full_range_RN(); }