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 Also move the auxiliary file 2023-03-20 10:25:29 +00:00
issue-13018.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-15953.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-27130.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-32031.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-32364.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-34634.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-34947-pow-i32.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-37945.rs make 32bit ignore more accurate 2023-04-03 10:23:08 +02:00
issue-44056-macos-tls-align.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-45222.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-45466.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-45964-bounds-check-slice-pos.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-47278.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-47442.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-56267-2.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-56267.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-56927.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-58881.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-59352.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-69101-bounds-check.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-73031.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-73258.rs
issue-73338-effecient-cmp.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
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 mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-75525-bounds-checks.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-75546.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-75659.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-75978.rs Add codegen tests for issues fixed by LLVM 16 2023-04-03 17:02:57 +02:00
issue-77812.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-81408-dllimport-thinlto-windows.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-84268.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-85872-multiple-reverse.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-86106.rs codegen: allow the dso_local attribute 2023-05-23 16:54:33 +02:00
issue-96274.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-96497-slice-size-nowrap.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-98156-const-arg-temp-lifetime.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-98294-get-mut-copy-from-slice-opt.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-99960.rs Add codegen tests for issues fixed by LLVM 16 2023-04-03 17:02:57 +02:00
issue-101048.rs Add codegen tests for issues fixed by LLVM 16 2023-04-03 17:02:57 +02:00
issue-101082.rs Make test compatible with 32-bit 2023-04-11 17:19:07 +02:00
issue-101814.rs Add ignore-debug to two tests 2023-04-11 11:22:15 +02:00
issue-103132.rs Add codegen tests for issues fixed by LLVM 16 2023-04-03 17:02:57 +02:00
issue-103285-ptr-addr-overflow-check.rs mv tests/codegen/issue-* tests/codegen/issues/ 2023-03-20 10:25:29 +00:00
issue-103327.rs Add codegen tests for issues fixed by LLVM 16 2023-04-03 17:02:57 +02:00
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