rust/tests/codegen/intrinsics
bors 710ce90fbe Auto merge of #128250 - Amanieu:select_unpredictable, r=nikic
Add `select_unpredictable` to force LLVM to use CMOV

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`.
2024-07-30 03:22:27 +00:00
..
aggregate-thin-pointer.rs
compare_bytes.rs
const_eval_select.rs
ctlz.rs
ctpop.rs
exact_div.rs
likely.rs
mask.rs
nearby.rs
nontemporal.rs
offset_from.rs
offset.rs
prefetch.rs
ptr_metadata.rs
rotate_left.rs
select_unpredictable.rs
three_way_compare.rs
transmute-niched.rs
transmute-x64.rs
transmute.rs
typed_swap.rs
unchecked_math.rs
volatile_order.rs
volatile.rs