summaryrefslogtreecommitdiff
path: root/libc/test/src/fenv/feenableexcept_test.cpp
AgeCommit message (Collapse)Author
2024-04-23[libc] Make fenv and math tests preserve fenv_t state (#89658)Roland McGrath
This adds a new test fixture class FEnvSafeTest (usable as a base class for other fixtures) that ensures each test doesn't perturb the `fenv_t` state that the next test will start with. It also provides types and methods tests can use to explicitly wrap code under test either to check that it doesn't perturb the state or to save and restore the state around particular test code. All the fenv and math tests are updated to use this so that none can affect another. Expectations that code under test and/or tests themselves don't perturb state can be added later.
2024-04-09[libc] Add proxy header for fenv.h macro constants. #87863 (#87896)Job Henandez Lara
Hello, this addresses #87863.
2023-09-26[libc] Start to refactor riscv platform abstraction to support both 32 and ↵Mikhail R. Gadelha
64 bits versions This patch enables the compilation of libc for rv32 by unifying the current rv64 and rv32 implementation into a single rv implementation. We updated the cmake file to match the new riscv32 arch and force LIBC_TARGET_ARCHITECTURE to be "riscv" whenever we find "riscv32" or "riscv64". This is required as LIBC_TARGET_ARCHITECTURE is used in the path for several platform specific implementations. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D148797
2023-09-26[libc] Mass replace enclosing namespace (#67032)Guillaume Chatelet
This is step 4 of https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079
2023-03-08[libc] Add riscv64 fenv implementation and enable the fenv.h functions.Siva Chandra
Reviewed By: mikhail.ramalho Differential Revision: https://reviews.llvm.org/D145560
2023-03-06[libc] Add arm 32 FEnvImpl.Siva Chandra Reddy
Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D145347
2023-02-09[libc][NFC] Move architectures.h to properties subfolderGuillaume Chatelet
2023-02-07[libc][NFC] Rename macrosGuillaume Chatelet
2023-02-07[libc][NFC] Move UnitTest and IntegrationTest to the 'test' directory.Siva Chandra Reddy
This part of the effort to make all test related pieces into the `test` directory. This helps is excluding test related pieces in a straight forward manner if LLVM_INCLUDE_TESTS is OFF. Future patches will also move the MPFR wrapper and testutils into the 'test' directory.
2023-02-07[libc][NFC] Rename architecture macros and move to macros folderGuillaume Chatelet
2021-11-02[libc] Add more robust compile time architecture detectionGuillaume Chatelet
We may want to restrict the detected platforms to only `x86_64` and `aarch64`. There are still custom detection in api.td but I don't think we can handle these: - config/linux/api.td:205 - config/linux/api.td:199 Differential Revision: https://reviews.llvm.org/D112818
2021-10-29Revert "[libc] Add more robust compile time architecture detection"Guillaume Chatelet
This reverts commit a72e2499865b55cb007b63673100c06cc85faf97.
2021-10-29[libc] Add more robust compile time architecture detectionGuillaume Chatelet
We may want to restrict the detected platforms to only `x86_64` and `aarch64`. There are still custom detection in api.td but I don't think we can handle these: - config/linux/api.td:205 - config/linux/api.td:199 Differential Revision: https://reviews.llvm.org/D112818
2021-09-10[libc] Add extension functions fedisableexcept, feenableexcept and fegetexcept.Siva Chandra Reddy
Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D109613