diff options
| author | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2024-03-17 00:25:36 -0400 |
|---|---|---|
| committer | Erik Desjardins <erikdesjardins@users.noreply.github.com> | 2024-03-17 00:39:21 -0400 |
| commit | 8d5fd94e6292b298e59a637d84fa16bed30d64d4 (patch) | |
| tree | a02461dd2ad40b6b0186ae15ac601a9a86069bbc /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 8841315d3e9aa02cb54d757cb5cd8131c263a893 (diff) | |
| download | rust-8d5fd94e6292b298e59a637d84fa16bed30d64d4.tar.gz rust-8d5fd94e6292b298e59a637d84fa16bed30d64d4.zip | |
add tests for PassMode::Cast fixes
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.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
