rust/tests/codegen/simd
Stuart Cook 45ebc4060b
Rollup merge of #137447 - folkertdev:simd-extract-insert-dyn, r=scottmcm
add `core::intrinsics::simd::{simd_extract_dyn, simd_insert_dyn}`

fixes https://github.com/rust-lang/rust/issues/137372

adds `core::intrinsics::simd::{simd_extract_dyn, simd_insert_dyn}`, which contrary to their non-dyn counterparts allow a non-const index. Many platforms (but notably not x86_64 or aarch64) have dedicated instructions for this operation, which stdarch can emit with this change.

Future work is to also make the `Index` operation on the `Simd` type emit this operation, but the intrinsic can't be used directly. We'll need some MIR shenanigans for that.

r? `@ghost`
2025-04-11 13:31:43 +10:00
..
extract-insert-dyn.rs add simd_insert_dyn and simd_extract_dyn 2025-04-10 21:22:07 +02:00
packed-simd-alignment.rs Test codegen for repr(packed,simd) 2024-06-02 04:13:35 -07:00
packed-simd.rs x86-sse2 ABI: use SSE registers for floats and SIMD 2025-02-18 16:11:41 +01:00
project-to-simd-array-field.rs Rework OperandRef::extract_field to stop calling to_immediate_scalar on things which are already immediates 2025-02-19 12:03:40 -08:00
simd_arith_offset.rs use the right feature in codegen tests 2025-02-27 12:23:00 +01:00
simd-wide-sum.rs Restore the test checks for wider_reduce_into_iter 2024-03-28 21:28:45 +08:00
swap-simd-types.rs Ensure swap_nonoverlapping is really always untyped 2025-04-09 09:09:37 -07:00
unpadded-simd.rs Ban non-array SIMD 2024-09-09 19:39:43 -07:00