about summary refs log tree commit diff
path: root/tests/codegen/repr
AgeCommit message (Collapse)AuthorLines
2025-07-22Rename `tests/codegen` into `tests/codegen-llvm`Guillaume Gomez-822/+0
2025-04-29enable msa feature for mips in codegen testsAdrian Friedli-1/+2
2025-04-23wasm, arm, x86-without-SSE need simd to be explicitly enabledRalf Jung-1/+4
2025-02-24tests: use minicore moreDavid Wood-43/+18
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-7/+7
2024-11-03Remove the `wasm32-wasi` target from rustcAlex Crichton-3/+3
This commit is the final step in the journey of renaming the historical `wasm32-wasi` target in the Rust compiler to `wasm32-wasip1`. Various steps in this journey so far have been: * 2023-04-03: rust-lang/compiler-team#607 - initial proposal for this rename * 2024-11-27: rust-lang/compiler-team#695 - amended schedule/procedure for rename * 2024-01-29: rust-lang/rust#120468 - initial introduction of `wasm32-wasip1` * 2024-06-18: rust-lang/rust#126662 - warn on usage of `wasm32-wasi` * 2024-11-08: this PR - remove the `wasm32-wasi` target The full transition schedule is in [this comment][comment] and is summarized with: * 2024-05-02: Rust 1.78 released with `wasm32-wasip1` target * 2024-09-05: Rust 1.81 released warning on usage of `wasm32-wasi` * 2025-01-09: Rust 1.84 to be released without the `wasm32-wasi` target This means that support on stable for the replacement target of `wasm32-wasip1` has currently been available for 6 months. Users have already seen warnings on stable for 2 months about usage of `wasm32-wasi` and stable users have another 2 months of warnings before the target is removed from stable. This commit is intended to be the final step in this transition so the source tree should no longer mention `wasm32-wasi` except in historical reference to the older name of the `wasm32-wasip1` target. [comment]: https://github.com/rust-lang/rust/pull/120468#issuecomment-1977878747
2024-09-18tests: Move wasm32 to transparent-opaque-ptr.rs testJubilee Young-4/+4
2024-09-17tests: add repr/transparent test for aarch64David Wood-3/+116
Moves `transparent-struct-ptr.rs` to `transparent-byval-struct-ptr.rs` and then adds a new `transparent-opaque-ptr.rs` for aarch64.
2024-09-09Ban non-array SIMDScott McMurray-1/+1
2024-08-12Auto merge of #128371 - andjo403:rangeAttribute, r=nikicbors-1/+1
Add range attribute to scalar function results and arguments as LLVM 19 adds the range attribute this starts to use it for better optimization. hade been interesting to see a perf run with the https://github.com/rust-lang/rust/pull/127513 closes https://github.com/rust-lang/rust/issues/50156 cc https://github.com/rust-lang/rust/issues/49572 shall be fixed but not possible to see as there is asserts that already trigger the optimization.
2024-08-11Add range attribute to scalar function results and argumentsAndreas Jonson-1/+1
2024-08-07Disallow setting built-in cfgs via set the command-lineUrgau-3/+3
2024-05-31Run rustfmt on `tests/codegen/`.Nicholas Nethercote-82/+206
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-03-10add -O to some tests which depend on attributes being addedErik Desjardins-4/+5
2024-03-09convert codegen/repr/transparent-* tests to no_core, fix discrepanciesErik Desjardins-48/+200
2024-03-05use [N x i8] for byval/sret typesErik Desjardins-8/+8
This avoids depending on LLVM's struct types to determine the size of the byval/sret slot.
2024-02-22[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives许杰友 Jieyou Xu (Joe)-22/+22
2023-09-07add support for rustc_abi(assert_eq) and use it to test some ↵Ralf Jung-1/+0
repr(transparent) cases
2023-07-29Replace ignore-everything with only-archJubilee Young-29/+26
Combining revisions with only-arch allows specifying that a test only applies to a handful of targets. This allows removing a large amount of repetition in the test suite for tests that do not benefit. The revisions are suboptimal for this for some tests, so they aren't preferred in those cases.
2023-07-29mv tests/codegen/repr-* tests/codegen/reprJubilee Young-0/+457
Slightly more complicated: also give them appropriate names that somewhat describe the cases they are trying to cover, using information from PR chatter in rust-lang/rust#47158