about summary refs log tree commit diff
path: root/tests/codegen/intrinsics/select_unpredictable.rs
AgeCommit message (Collapse)AuthorLines
2025-05-01Stabilize `select_unpredictable`Amanieu d'Antras-1/+0
FCP completed in tracking issue #133962.
2025-04-13Move `select_unpredictable` to the `hint` moduleAmanieu d'Antras-4/+4
2025-02-11tests/codegen: use -Copt-level=3 instead of -OJubilee Young-1/+1
2025-01-05Expand the `select_unpredictable` test for ZSTsTrevor Gross-0/+5
For ZSTs there is no selection that needs to take place, so assert that no `select` statement is emitted.
2025-01-05Merge the intrinsic and user tests for `select_unpredictable`Trevor Gross-1/+33
[1] mentions that having a single test with `-Zmerge-functions=disabled` is preferable to having two separate tests. Apply that to the new `select_unpredicatble` test here. [1]: https://github.com/rust-lang/rust/pull/133964#issuecomment-2569693325
2024-07-28Force LLVM to use CMOV for binary searchAmanieu d'Antras-0/+35
Since https://reviews.llvm.org/D118118, LLVM will no longer turn CMOVs into branches if it comes from a `select` marked with an `unpredictable` metadata attribute. This PR introduces `core::intrinsics::select_unpredictable` which emits such a `select` and uses it in the implementation of `binary_search_by`.