rust/tests/codegen/issues
Matthias Krüger bdf9ed497a
Rollup merge of #111878 - ferrocene:pa-codegen-tests, r=Mark-Simulacrum
Fix codegen test suite for bare-metal-like targets

For Ferrocene I needed to run the test suite for custom target with no unwinding and static relocation. Running the tests uncovered ~20 failures due to the test suite not accounting for these options. This PR fixes them by:

* Fixing `CHECK`s to account for functions having extra LLVM IR attributes (in this case `nounwind`).
* Fixing `CHECK`s to account for the `dso_local` LLVM IR modifier, which is [added to every item when relocation is static](f3d597b31c/compiler/rustc_codegen_llvm/src/mono_item.rs (L139-L142)).
* Fixing `CHECK`s to account for missing `uwtables` attributes.
* Added the `needs-unwind` attributes for tests that are designed to check unwinding.

There is no part of Rust CI that checks this unfortunately, and testing whether the PR works locally is kinda hard because you need a target with std enabled but no unwinding and static relocations. Still, this works in my local testing, and if future PRs accidentally break this Ferrocene will take care of sending followup PRs.
2023-06-03 20:38:11 +02:00
..
auxiliary
issue-13018.rs
issue-15953.rs
issue-27130.rs
issue-32031.rs
issue-32364.rs
issue-34634.rs
issue-34947-pow-i32.rs
issue-37945.rs
issue-44056-macos-tls-align.rs
issue-45222.rs
issue-45466.rs
issue-45964-bounds-check-slice-pos.rs
issue-47278.rs
issue-47442.rs
issue-56267-2.rs
issue-56267.rs
issue-56927.rs
issue-58881.rs
issue-59352.rs
issue-69101-bounds-check.rs
issue-73031.rs
issue-73258.rs
issue-73338-effecient-cmp.rs
issue-73396-bounds-check-after-position.rs Stop checking for the absense of something that doesn't exist 2023-05-12 21:59:26 -07:00
issue-73827-bounds-check-index-in-subexpr.rs
issue-75525-bounds-checks.rs
issue-75546.rs
issue-75659.rs
issue-75978.rs
issue-77812.rs
issue-81408-dllimport-thinlto-windows.rs
issue-84268.rs
issue-85872-multiple-reverse.rs
issue-86106.rs codegen: allow the dso_local attribute 2023-05-23 16:54:33 +02:00
issue-96274.rs
issue-96497-slice-size-nowrap.rs
issue-98156-const-arg-temp-lifetime.rs
issue-98294-get-mut-copy-from-slice-opt.rs
issue-99960.rs
issue-101048.rs
issue-101082.rs Make test compatible with 32-bit 2023-04-11 17:19:07 +02:00
issue-101814.rs
issue-103132.rs
issue-103285-ptr-addr-overflow-check.rs
issue-103327.rs
issue-103840.rs fix codegen test 2023-04-28 23:08:54 +02:00
issue-105386-ub-in-debuginfo.rs Enable ScalarReplacementOfAggregates 2023-05-31 19:18:16 -04:00
issue-106369.rs
issue-111603.rs Fix duplicate arcinner_layout_for_value_layout calls 2023-05-16 08:53:05 +02:00