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