about summary refs log tree commit diff
path: root/tests/codegen/riscv-abi
AgeCommit message (Collapse)AuthorLines
2025-06-16Fix RISC-V C function ABI when passing/returning structs containing floatsbeetrees-0/+44
2025-02-24tests: use minicore moreDavid Wood-25/+9
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-3/+3
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-07-25Let InstCombine remove Clone shims inside Clone shimsBen Kimock-0/+1
Co-authored-by: scottmcm <scottmcm@users.noreply.github.com>
2024-06-19Fix non-x86 testsGary Guo-1/+1
2024-06-05Repair several riscv64gc-unknown-linux-gnu codegen testsAna Hobden-15/+33
Fix tests/codegen/riscv-abi/call-llvm-intrinsics.rs Fix tests/codegen/riscv-abi/riscv64-lp64d-abi.rs Fix tests/codegen/riscv-abi/riscv64-lp64f-lp64d-abi.rs On riscv64gc ignore tests/ui/debuginfo/debuginfo-emit-llvm-ir-and-split-debuginfo.rs Make tests/codegen/riscv-abi/riscv64-lp64d-abi.rs no_core Make tests/codegen/riscv-abi/riscv64-lp64f-lp64d-abi.rs no_core Set -O for tests/codegen/riscv-abi/riscv64-lp64d-abi.rs Set -O for tests/codegen/riscv-abi/riscv64-lp64f-lp64d-abi.rs
2024-05-31Run rustfmt on `tests/codegen/`.Nicholas Nethercote-8/+4
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-02-22[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives许杰友 Jieyou Xu (Joe)-10/+10
2023-07-27CHECK only for opaque ptrJosh Stone-5/+5
2023-07-08Always name the return place.Camille GILLOT-1/+1
2023-01-17Put `noundef` on all scalars that don't allow uninitNilstrieb-9/+9
Previously, it was only put on scalars with range validity invariants like bool, was uninit was obviously invalid for those. Since then, we have normatively declared all uninit primitives to be undefined behavior and can therefore put `noundef` on them. The remaining concern was the `mem::uninitialized` function, which cause quite a lot of UB in the older parts of the ecosystem. This function now doesn't return uninit values anymore, making users of it safe from this change. The only real sources of UB where people could encounter uninit primitives are `MaybeUninit::uninit().assume_init()`, which has always be clear in the docs about being UB and from heap allocations (like reading from the spare capacity of a vec. This is hopefully rare enough to not break anything.
2023-01-11Move /src/test to /testsAlbert Larsan-0/+789