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_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
26 libc_test(
27 name = "bfloat16_test",
28 srcs = ["bfloat16_test.cpp"],
29 deps = [
30 "//libc:__support_fputil_bfloat16",
31 "//libc/test/UnitTest:fp_test_helpers",
32 "//libc/utils/MPFRWrapper:mp_common",
33 "//libc/utils/MPFRWrapper:mpfr_wrapper",
34 ],
35 )
36
37 libc_test(
38 name = "dyadic_float_test",
39 srcs = ["dyadic_float_test.cpp"],
40 copts = ["-frounding-math"],
41 deps = [
42 "//libc:__support_big_int",
43 "//libc:__support_fputil_dyadic_float",
44 "//libc:__support_macros_properties_types",
45 "//libc:__support_uint128",
46 "//libc/test/UnitTest:fp_test_helpers",
47 "//libc/utils/MPFRWrapper:mpfr_wrapper",
48 ],
49 )
50
51 libc_test(
52 name = "rounding_mode_test",
53 srcs = ["rounding_mode_test.cpp"],
54 deps = [
55 "//libc:__support_fputil_rounding_mode",
56 "//libc:__support_uint128",
57 "//libc:hdr_fenv_macros",
58 "//libc/utils/MPFRWrapper:mpfr_wrapper",
59 ],
60 )