about summary refs log tree commit diff
path: root/tests/mir-opt/issues
AgeCommit message (Collapse)AuthorLines
2023-10-19Allow to run filecheck in mir-opt tests.Camille GILLOT-0/+2
2023-10-06Preserve DebugInfo in DeadStoreElimination.Camille GILLOT-44/+46
2023-10-04Remove mir::LocalDecl::internal.Camille GILLOT-0/+10
2023-08-17Revert "Implement references VarDebugInfo."Camille GILLOT-2/+8
This reverts commit 2ec007191348ef7cc13eb55e44e007b02cf75cf3.
2023-07-19Turn copy into moves during DSE.Camille GILLOT-2/+2
2023-07-10Enable by default.Camille GILLOT-38/+30
2023-06-23Bless testsGary Guo-3/+3
2023-06-15Remove comments from mir-opt MIR dumpsBen Kimock-132/+108
2023-06-12bless mir-optPietro Albini-0/+84
To reproduce the changes in this commit locally: - Run `./x test tidy` and remove all the output files not associated with a test file anymore, as reported by tidy. - Run `./x test tests/mir-opt --bless` to generate the new outputs.
2023-06-12properly mark tests that require panic=abortPietro Albini-1/+1
2023-05-21Normalize block and local orders in mir-opt testsScott McMurray-31/+31
Since this only affects `PreCodegen MIR, and it would be nice for that to be resilient to permutations of things that don't affect the actual semantic behaviours.
2023-04-22Turn on ConstDebugInfo pass.Wesley Wiser-19/+16
2023-04-06Ignore many tests on wasm32Gary Guo-3/+4
2023-03-22Add `CastKind::Transmute` to MIRScott McMurray-30/+18
Updates `interpret`, `codegen_ssa`, and `codegen_cranelift` to consume the new cast instead of the intrinsic. Includes `CastTransmute` for custom MIR building, to be able to test the extra UB.
2023-03-13Generalize operation.Camille GILLOT-1/+0
2023-02-12Enable CopyProp by default, tune the impl a bitBen Kimock-9/+5
2023-02-02Stop deaggregating enums in MIR.Camille GILLOT-5/+2
2023-01-12Fix mir-opt tests for big-endian platformsUlrich Weigand-2/+3
The test cases src/test/mir-opt/building/custom/consts.rs and src/test/mir-opt/const_prop/mutable_variable_no_prop.rs are currently failing on big-endian platforms as the binary encoding of some constants is hard-coded in the MIR test files. Fix this by choosing constant values that have the same encoding on big- and little-endian platforms. The test case src/test/mir-opt/issues/issue_75439.rs is failing as well, but since the purpose of the test is to validate handling of big-endian integer encodings on a little-endian platform, it does not make much sense to run it on big-endian platforms in the first place - we can just ignore it there. Fixed part of https://github.com/rust-lang/rust/issues/105383.
2023-01-11Move /src/test to /testsAlbert Larsan-0/+218