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 Fix ICE in non-operand aggregate_raw_ptr instrinsic codegen 2024-05-16 09:43:42 -07:00
compare_bytes.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
const_eval_select.rs Run rustfmt on tests/codegen/. 2024-05-31 15:56:43 +10:00
ctlz.rs Add codegen tests for changed intrinsics 2024-04-16 12:35:22 +00:00
ctpop.rs Add codegen tests for changed intrinsics 2024-04-16 12:35:22 +00:00
exact_div.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
likely.rs Run rustfmt on tests/codegen/. 2024-05-31 15:56:43 +10:00
mask.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
nearby.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
nontemporal.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
offset_from.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
offset.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
prefetch.rs Run rustfmt on tests/codegen/. 2024-05-31 15:56:43 +10:00
ptr_metadata.rs Add an intrinsic for ptr::metadata 2024-05-28 09:28:51 -07:00
rotate_left.rs Add codegen tests for changed intrinsics 2024-04-16 12:35:22 +00:00
select_unpredictable.rs Force LLVM to use CMOV for binary search 2024-07-28 17:24:57 +01:00
three_way_compare.rs Add+Use mir::BinOp::Cmp 2024-03-23 23:23:41 -07:00
transmute-niched.rs Stabilize generic NonZero. 2024-04-22 18:48:47 +02:00
transmute-x64.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00
transmute.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
typed_swap.rs Don't emit load metadata in debug mode 2024-03-25 18:32:45 +00:00
unchecked_math.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
volatile_order.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
volatile.rs [AUTO_GENERATED] Migrate compiletest to use ui_test-style //@ directives 2024-02-22 16:04:04 +00:00