summaryrefslogtreecommitdiff
path: root/libc/test/UnitTest/RoundingModeUtils.cpp
AgeCommit message (Collapse)Author
2024-07-12[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)Petr Hosek
This is a part of #97655.
2024-07-12Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace ↵Mehdi Amini
declaration" (#98593) Reverts llvm/llvm-project#98075 bots are broken
2024-07-11[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98075)Petr Hosek
This is a part of #97655.
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] 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-06-16[libc][nfc] Silence two warnings in testsJoseph Huber
These currently give warnings for unused variables or a default case where everything is covered. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D153137
2023-06-14[libc] Enable hermetic floating point tests again.Tue Ly
Fixing an issue with LLVM libc's fenv.h defined rounding mode macros differently from system libc, making get_round() return different values from fegetround(). Also letting math tests to skip rounding modes that cannot be set. This should allow math tests to be run on platforms in which fenv.h is not implemented yet. This allows us to re-enable hermatic floating point tests in https://reviews.llvm.org/D151123 and reverting https://reviews.llvm.org/D152742. Reviewed By: jhuber6 Differential Revision: https://reviews.llvm.org/D152873
2023-05-25Revert "[libc] Enable hermetic floating point tests"Joseph Huber
This passed locally but unfortauntely it seems some tests are not ready to be made hermetic. Revert for now until we can investigate specifically which tests are failing and mark those as `UNIT_TEST_ONLY`. This reverts commit 417ea79e792a87d53f5ac4f5388af4b25aa04d7d.
2023-05-25[libc] Enable hermetic floating point testsJoseph Huber
This patch enables us to run the floating point tests as hermetic. Importantly we now use the internal versions of the `fesetround` and `fegetround` functions. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D151123
2023-05-03[libc] Revert rounding mode changes for hermetic testsJoseph Huber
We got rid of the rounding mode here so that the hermetic tests wouldn't depend on the system fenv.h. But this seemed to cause some bots to break. Getting rid of this change for now, it should be fine for the CPU builds. Differential Revision: https://reviews.llvm.org/D149767
2023-05-03[libc] Enable the 'stdlib' unit tests to be hermeticJoseph Huber
This changes the `stdlib` tests to the new `add_libc_test` framework. This applies to all but the exit tests. Depends on D149691 Reviewed By: sivachandra, michaelrj Differential Revision: https://reviews.llvm.org/D149705
2023-04-18[libc][NFC] Move RoundingModeUtils to LibcFPTestHelpers.Siva Chandra Reddy
Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D148602