about summary refs log tree commit diff
path: root/tests/codegen-llvm/issues
AgeCommit message (Collapse)AuthorLines
2025-09-27Rollup merge of #146732 - durin42:llvm-22-less-assumes, r=nikicMatthias Krüger-2/+5
tests: relax expectations after llvm change 902ddda120a5 LLVM 22 is able to drop assumes that seem to not help further optimizations, which actually seems to dramatically _help_ further optimizations in some of our small test cases. I'm a little unclear how to fix the last failure, in `tests/codegen-llvm/issues/issue-122600-ptr-discriminant-update.rs`: ``` -; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: readwrite, inaccessiblemem: write) uwtable +; Function Attrs: mustprogress nofree norecurse nosync nounwind nonlazybind willreturn memory(argmem: readwrite, inaccessiblemem: write) uwtable define void ``@update(ptr`` noundef captures(none) %s) unnamed_addr #0 { start: - %_3.sroa.0.0.copyload = load i8, ptr %s, align 1 - %0 = trunc nuw i8 %_3.sroa.0.0.copyload to i1 - %1 = xor i1 %0, true - tail call void ``@llvm.assume(i1`` %1) store i8 1, ptr %s, align 1 ret void } ``` I'm just not conversant enough in LLVM IR to follow the changes here. ``@rustbot`` label llvm-main r? nikic
2025-09-26tests: use max-llvm-major-version instead of ignore-llvm-versionAugie Fackler-1/+1
2025-09-21regression test for https://github.com/rust-lang/rust/issues/117763The 8472-0/+17
2025-09-19tests: relax expectations after llvm change 902ddda120a5Augie Fackler-2/+5
LLVM 22 is able to drop assumes that seem to not help further optimizations, which actually seems to dramatically _help_ further optimizations in some of our small test cases.
2025-09-16Update the minimum external LLVM to 20Josh Stone-5/+0
2025-09-02Adjust issue-118306.rs test after LLVM changeHans Wennborg-1/+1
This updates tests/codegen-llvm/issues/issue-118306.rs to pass also after https://github.com/llvm/llvm-project/pull/155415
2025-08-22Rollup merge of #145380 - okaneco:add-codegen-tests, r=Mark-SimulacrumJacob Pratt-0/+182
Add codegen-llvm regression tests Most of these regressions deal with elimination of panics and bounds checks that were fixed upstream by LLVM. closes https://github.com/rust-lang/rust/issues/141497 closes https://github.com/rust-lang/rust/issues/131162 closes https://github.com/rust-lang/rust/issues/129583 closes https://github.com/rust-lang/rust/issues/110971 closes https://github.com/rust-lang/rust/issues/91109 closes https://github.com/rust-lang/rust/issues/80075 closes https://github.com/rust-lang/rust/issues/74917 closes https://github.com/rust-lang/rust/issues/71997 closes https://github.com/rust-lang/rust/issues/71257 closes https://github.com/rust-lang/rust/issues/59352
2025-08-21Consolidate panicking functions in `slice/index.rs`Karl Meakin-18/+12
Consolidate all the panicking functions in `slice/index.rs` to use a single `slice_index_fail` function, similar to how it is done in `str/traits.rs`.
2025-08-20Add codegen regression testsokaneco-0/+182
Most of these regressions concern elimination of panics and bounds checks that were fixed upstream by LLVM.
2025-08-18Rollup merge of #145355 - clubby789:option-match-eq, r=nikicStuart Cook-0/+78
Add codegen test for issue 122734 Closes rust-lang/rust#122734
2025-08-15Rollup merge of #145120 - maurer:llvm-time, r=nikicStuart Cook-1/+1
llvm: Accept new LLVM lifetime format In llvm/llvm-project#150248 LLVM removed the size parameter from the lifetime format. Tolerate not having that size parameter.
2025-08-13Add test for issue 122734Jamie Hill-Daniel-0/+78
2025-08-11llvm: Accept new LLVM lifetime formatMatthew Maurer-1/+1
LLVM removed the size parameter from the lifetime format. Tolerate not having that size parameter.
2025-08-07Add regression test for `saturating_sub` bounds check issueokaneco-0/+19
Add codegen test for issue where `valid_index.saturating_sub(X)` produced an extra bounds check. This was fixed by the LLVM upgrade.
2025-07-22Rename `tests/codegen` into `tests/codegen-llvm`Guillaume Gomez-0/+1989