Debian Codegraph @

utils/bazel/llvm-project-overlay/libc/test/src/__support/FPUtil/BUILD.bazel

raw
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
7 load("//libc/test:libc_test_rules.bzl", "libc_test")
8
9 package(default_visibility = ["//visibility:public"])
10
11 licenses(["notice"])
12
13 libc_test(
14 name = "fpbits_test",
15 srcs = ["fpbits_test.cpp"],
16 deps = [
17 "//libc:__support_fputil_fp_bits",
18 "//libc:__support_fputil_fpbits_str",
19 "//libc:__support_integer_literals",
20 "//libc:__support_sign",
21 ],
22 )
23
24 libc_test(
25 name = "dyadic_float_test",
26 srcs = ["dyadic_float_test.cpp"],
27 copts = ["-frounding-math"],
28 deps = [
29 "//libc:__support_big_int",
30 "//libc:__support_fputil_dyadic_float",
31 "//libc:__support_macros_properties_types",
32 "//libc:__support_uint128",
33 "//libc/test/UnitTest:fp_test_helpers",
34 "//libc/utils/MPFRWrapper:mpfr_wrapper",
35 ],
36 )
37
38 libc_test(
39 name = "rounding_mode_test",
40 srcs = ["rounding_mode_test.cpp"],
41 deps = [
42 "//libc:__support_fputil_rounding_mode",
43 "//libc:__support_uint128",
44 "//libc/utils/MPFRWrapper:mpfr_wrapper",
45 "//libc:hdr_fenv_macros",
46 ],
47 )