about summary refs log tree commit diff
path: root/tests/codegen/cast-target-abi.rs
AgeCommit message (Collapse)AuthorLines
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.