1# This file is licensed under the Apache License v2.0 with LLVM Exceptions. 2# See https://llvm.org/LICENSE.txt for license information. 3# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 4 5# Tests for LLVM libc __support functions. 6 7load("//libc/test:libc_test_rules.bzl", "libc_test") 8 9package(default_visibility = ["//visibility:public"]) 10 11licenses(["notice"]) 12 13libc_test( 14 name = "fpbits_test", 15 srcs = ["fpbits_test.cpp"], 16 deps = [ 17 "//libc:__support_big_int", 18 "//libc:__support_fputil_fp_bits", 19 "//libc:__support_fputil_fpbits_str", 20 "//libc:__support_integer_literals", 21 "//libc:__support_macros_properties_types", 22 "//libc:__support_sign", 23 ], 24) 25 26libc_test( 27 name = "dyadic_float_test", 28 srcs = ["dyadic_float_test.cpp"], 29 copts = ["-frounding-math"], 30 deps = [ 31 "//libc:__support_big_int", 32 "//libc:__support_fputil_dyadic_float", 33 "//libc:__support_macros_properties_types", 34 "//libc:__support_uint128", 35 "//libc/test/UnitTest:fp_test_helpers", 36 "//libc/utils/MPFRWrapper:mpfr_wrapper", 37 ], 38) 39 40libc_test( 41 name = "rounding_mode_test", 42 srcs = ["rounding_mode_test.cpp"], 43 deps = [ 44 "//libc:__support_fputil_rounding_mode", 45 "//libc:__support_uint128", 46 "//libc:hdr_fenv_macros", 47 "//libc/utils/MPFRWrapper:mpfr_wrapper", 48 ], 49) 50