about summary refs log tree commit diff
path: root/tests/mir-opt/pre-codegen/checked_ops.rs
AgeCommit message (Collapse)AuthorLines
2025-03-15Add MIR pre-codegen tests to track 138544Scott McMurray-1/+38
2024-04-18Make `checked` ops emit *unchecked* LLVM operations where feasibleScott McMurray-1/+1
For things with easily pre-checked overflow conditions -- shifts and unsigned subtraction -- write then checked methods in such a way that we stop emitting wrapping versions of them. For example, today <https://rust.godbolt.org/z/qM9YK8Txb> neither ```rust a.checked_sub(b).unwrap() ``` nor ```rust a.checked_sub(b).unwrap_unchecked() ``` actually optimizes to `sub nuw`. After this PR they do.
2024-04-18Update `checked_ops` so 32- and 64-bit gets the same checksScott McMurray-2/+3
2024-03-18Remove some only- clauses from mir-opt testsBen Kimock-1/+0
2024-02-22[AUTO_GENERATED] Migrate compiletest to use `ui_test`-style `//@` directives许杰友 Jieyou Xu (Joe)-3/+3
2023-10-19Allow to run filecheck in mir-opt tests.Camille GILLOT-0/+1
2023-08-24remove some unnecessary ignore-debug clausesRalf Jung-1/+0
2023-06-01Remove brittle test.Camille GILLOT-5/+0
2023-06-01Restrict test to x64.Camille GILLOT-0/+1
2023-06-01Annotate needs-unwind.Camille GILLOT-0/+1
2023-06-01Add e2e mir test for checked arithmetic.Camille GILLOT-0/+20