Skip to content

Commit df1a2ae

Browse files
authored
Rollup merge of #147521 - sayantn:simd-const-intrinsics, r=madsmtm
Make SIMD intrinsics available in `const`-contexts successor to rust-lang/rust#146568, this PR actually makes the SIMD intrinsics `const`, and modifies the tests to test the const-eval implementations r? `@tgross35` ig (although feel free to reassign, this is not anything targeted really)
2 parents d797172 + b2e701f commit df1a2ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/pass/intrinsics/portable-simd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl<T: Copy, const N: usize> PackedSimd<T, N> {
6060

6161
#[rustc_intrinsic]
6262
#[rustc_nounwind]
63-
pub unsafe fn simd_shuffle_const_generic<T, U, const IDX: &'static [u32]>(x: T, y: T) -> U;
63+
pub const unsafe fn simd_shuffle_const_generic<T, U, const IDX: &'static [u32]>(x: T, y: T) -> U;
6464

6565
fn simd_ops_f16() {
6666
use intrinsics::*;

0 commit comments

Comments
 (0)