about summary refs log tree commit diff
path: root/tests/codegen/cast-target-abi.rs
AgeCommit message (Collapse)AuthorLines
2025-07-22Rename `tests/codegen` into `tests/codegen-llvm`Guillaume Gomez-599/+0
2025-04-05Update the minimum external LLVM to 19Josh Stone-1/+0
2025-03-31PassWrapper: adapt for ↵Augie Fackler-1/+1
llvm/llvm-project@94122d58fc77079a291a3d008914006cb509d9db We also have to remove the LLVM argument in cast-target-abi.rs for LLVM 21. I'm not really sure what the best approach here is since that test already uses revisions. We could also fork the test into a copy for LLVM 19-20 and another for LLVM 21, but what I did for now was drop the lint-abort-on-error flag to LLVM figuring that some coverage was better than none, but I'm happy to change this if that was a bad direction. The above also applies for ffi-out-of-bounds-loads.rs. r? dianqk @rustbot label llvm-main
2025-02-24tests: use minicore moreDavid Wood-6/+3
minicore makes it much easier to add new language items to all of the existing `no_core` tests.
2025-02-11tests/codegen: use -Copt-level=3 instead of -OJubilee Young-1/+1
2025-01-30LLVM changed the nocapture attribute to captures(none)Hans Wennborg-1/+1
This updates RustWrapper.cpp and tests after https://github.com/llvm/llvm-project/pull/123181
2024-08-29Add `-Zlint-llvm-ir`DianQK-2/+2
2024-07-02Use the aligned size for alloca at ret when the pass mode is cast.DianQK-11/+11
2024-07-02Use the aligned size for alloca at args when the pass mode is cast.DianQK-26/+9
The `load` and `store` instructions in LLVM access the aligned size.
2024-07-02Add the definition for `extern "C"` at `cast-target-abi.rs`.DianQK-24/+358
2024-05-31Run rustfmt on `tests/codegen/`.Nicholas Nethercote-7/+6
Except for `simd-intrinsic/`, which has a lot of files containing multiple types like `u8x64` which really are better when hand-formatted. There is a surprising amount of two-space indenting in this directory. Non-trivial changes: - `rustfmt::skip` needed in `debug-column.rs` to preserve meaning of the test. - `rustfmt::skip` used in a few places where hand-formatting read more nicely: `enum/enum-match.rs` - Line number adjustments needed for the expected output of `debug-column.rs` and `coroutine-debug.rs`.
2024-04-11use [N x i8] for alloca typesErik Desjardins-57/+64
2024-03-17disable crashing test on sparcErik Desjardins-12/+23
2024-03-17add tests for PassMode::Cast fixesErik Desjardins-0/+269
Tests added in cast-target-abi.rs, covering the single element, array, and prefix cases in `CastTarget::llvm_type`, and the Rust-is-larger/smaller cases in the Rust<->ABI copying code. ffi-out-of-bounds-loads.rs was overhauled to be runnable on any platform. Its alignment also increases due to the removal of a `min` in the previous commit; this was probably an insufficient workaround for this issue or similar. The higher alignment is fine, since the alloca is actually aligned to 8 bytes, as the test checks now confirm.