summaryrefslogtreecommitdiff
path: root/libc/test/IntegrationTest/test.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-06-17[libc] Fix getauxval being defined in a namespaceJoseph Huber
2024-06-17[libc] Only include getauxval on AARCH64 targets (#95844)Joseph Huber
Summary: Not all platforms support this function or header, but it was being included by every test. Move it inside of the `ifdef` for the only user, which is aarch64.
2024-06-13Reland "[libc] fix aarch64 linux full build (#95358)" (#95423)Schrodinger ZHU Yifan
Reverts llvm/llvm-project#95419 and Reland #95358. This PR is full of temporal fixes. After a discussion with @lntue, it is better to avoid further changes to the cmake infrastructure for now as a rework to the cmake utilities will be landed in the future.
2024-06-13Revert "[libc] fix aarch64 linux full build (#95358)" (#95419)Schrodinger ZHU Yifan
2024-06-13[libc] fix aarch64 linux full build (#95358)Schrodinger ZHU Yifan
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-05-15[libc] Make the bump pointer explicitly return null on buffer oveerrunJoseph Huber
We use a simple bump ptr in the `libc` tests. If we run out of data we can currently return other static memory and have weird failure cases. We should fail more explicitly here by returning a null pointer instead. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D150529
2023-05-04[libc] Support global constructors and destructors on NVPTXJoseph Huber
This patch adds the necessary hacks to support global constructors and destructors. This is an incredibly hacky process caused by the primary fact that Nvidia does not provide any binary tools and very little linker support. We first had to emit references to these functions and their priority in D149451. Then we dig them out of the module once it's loaded to manually create the list that the linker should have made for us. This patch also contains a few Nvidia specific hacks, but it passes the test, albeit with a stack size warning from `ptxas` for the callback. But this should be fine given the resource usage of a common test. This also adds a dependency on LLVM to the NVPTX loader, which hopefully doesn't cause problems with our CUDA buildbot. Depends on D149451 Reviewed By: tra Differential Revision: https://reviews.llvm.org/D149527
2023-03-15[libc] Add missing return statements to wrapper functionsJoseph Huber
Summary: I forgot to add return statements to these memory comparison functions. This should hopefully resolve some BB errors.
2023-03-15[libc] Add aliases to C memory functions for integration testsJoseph Huber
The integration tests require the C memory functions as the compiler may emit calls to them directly. The tests normally use the `__internal__` variant that is built for testing, but these memory functions were linked directly to preserve the entrypoint. Instead, we forward delcare the internal versions and map the entrypoints to them manually inside the integration test. This allows us to use the internal versions of these files like the rest of the test objects. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D146177
2023-03-13[libc] Declare __dso_handle in the integration test instead of startup.Siva Chandra Reddy
Fixes #61355. The __dso_handle decl was introduced incorrectly into the startup objects during the integration test cleanup which moved the integration tests away from using an artificial sysroot to using -nostdlib. Having it in the startup creates the duplicate symbol error when one does not use -nostdlib. Since this is an integration test only problem, it is meaningful to keep it in the integration test anyway. Differential Revision: https://reviews.llvm.org/D145898
2023-03-05[libc][NFC] Remove allocator definition in the api-test.Siva Chandra Reddy
The integration tests already have allocators so we will get all of them from there.
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.