brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.8 KiB · 1af1a98 Raw
162 lines · plain
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-exception4 5# Tests for LLVM libc math.h 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 = "exception_status_test",15    srcs = [16        "exception_status_test.cpp",17        "excepts.h",18    ],19    deps = [20        "//libc:__support_fputil_fenv_impl",21        "//libc:feclearexcept",22        "//libc:feraiseexcept",23        "//libc:fesetexcept",24        "//libc:fetestexcept",25        "//libc:hdr_fenv_macros",26        "//libc/test/UnitTest:fp_test_helpers",27    ],28)29 30libc_test(31    name = "rounding_mode_test",32    srcs = [33        "excepts.h",34        "rounding_mode_test.cpp",35    ],36    deps = [37        "//libc:fegetround",38        "//libc:fesetround",39        "//libc:hdr_fenv_macros",40        "//libc/test/UnitTest:fp_test_helpers",41    ],42)43 44libc_test(45    name = "enabled_exceptions_test",46    srcs = [47        "enabled_exceptions_test.cpp",48        "excepts.h",49    ],50    tags = ["nosan"],51    deps = [52        "//libc:__support_common",53        "//libc:__support_fputil_fenv_impl",54        "//libc:__support_macros_properties_architectures",55        "//libc:feclearexcept",56        "//libc:feraiseexcept",57        "//libc:fetestexcept",58        "//libc:hdr_fenv_macros",59        "//libc/test/UnitTest:fp_test_helpers",60    ],61)62 63libc_test(64    name = "feholdexcept_test",65    srcs = [66        "excepts.h",67        "feholdexcept_test.cpp",68    ],69    tags = ["nosan"],70    deps = [71        "//libc:__support_common",72        "//libc:__support_fputil_fenv_impl",73        "//libc:__support_macros_properties_architectures",74        "//libc:feholdexcept",75        "//libc:hdr_fenv_macros",76        "//libc:types_fenv_t",77        "//libc/test/UnitTest:fp_test_helpers",78    ],79)80 81libc_test(82    name = "exception_flags_test",83    srcs = [84        "exception_flags_test.cpp",85        "excepts.h",86    ],87    deps = [88        "//libc:__support_fputil_fenv_impl",89        "//libc:fegetexceptflag",90        "//libc:fesetexceptflag",91        "//libc:fetestexceptflag",92        "//libc:hdr_fenv_macros",93        "//libc:types_fexcept_t",94        "//libc/test/UnitTest:fp_test_helpers",95    ],96)97 98libc_test(99    name = "feclearexcept_test",100    srcs = [101        "excepts.h",102        "feclearexcept_test.cpp",103    ],104    deps = [105        "//libc:__support_fputil_fenv_impl",106        "//libc:feclearexcept",107        "//libc:hdr_fenv_macros",108        "//libc/test/UnitTest:fp_test_helpers",109    ],110)111 112libc_test(113    name = "feenableexcept_test",114    srcs = [115        "excepts.h",116        "feenableexcept_test.cpp",117    ],118    deps = [119        "//libc:__support_common",120        "//libc:__support_macros_properties_architectures",121        "//libc:fedisableexcept",122        "//libc:feenableexcept",123        "//libc:fegetexcept",124        "//libc:hdr_fenv_macros",125        "//libc/test/UnitTest:fp_test_helpers",126    ],127)128 129libc_test(130    name = "feupdateenv_test",131    srcs = [132        "excepts.h",133        "feupdateenv_test.cpp",134    ],135    deps = [136        "//libc:__support_fputil_fenv_impl",137        "//libc:feupdateenv",138        "//libc:hdr_fenv_macros",139        "//libc:types_fenv_t",140        "//libc/test/UnitTest:fp_test_helpers",141    ],142)143 144libc_test(145    name = "getenv_and_setenv_test",146    srcs = [147        "excepts.h",148        "getenv_and_setenv_test.cpp",149    ],150    deps = [151        "//libc:__support_fputil_fenv_impl",152        "//libc:__support_macros_properties_os",153        "//libc:fegetenv",154        "//libc:fegetround",155        "//libc:fesetenv",156        "//libc:fesetround",157        "//libc:hdr_fenv_macros",158        "//libc:types_fenv_t",159        "//libc/test/UnitTest:fp_test_helpers",160    ],161)162