diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-10-02 13:06:07 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2023-10-02 13:06:07 +0000 |
| commit | 654bc614dd81557e9a52084f23ec82a12d1fcd60 (patch) | |
| tree | 49e9fa9c58941ab5c04fa3fbf486e0d0618f9568 | |
| parent | 5aeae0524e7978585fd8ee0f7365099b7c7bae2a (diff) | |
| download | rust-654bc614dd81557e9a52084f23ec82a12d1fcd60.tar.gz rust-654bc614dd81557e9a52084f23ec82a12d1fcd60.zip | |
Fix simd_shuffle_generic intrinsic
| -rw-r--r-- | src/intrinsics/simd.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intrinsics/simd.rs b/src/intrinsics/simd.rs index 256b55a2a01..c34c1cd8060 100644 --- a/src/intrinsics/simd.rs +++ b/src/intrinsics/simd.rs @@ -148,7 +148,7 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>( let total_len = lane_count * 2; let indexes = - idx.iter().map(|idx| idx.unwrap_leaf().try_to_u16().unwrap()).collect::<Vec<u16>>(); + idx.iter().map(|idx| idx.unwrap_leaf().try_to_u32().unwrap()).collect::<Vec<u32>>(); for &idx in &indexes { assert!(u64::from(idx) < total_len, "idx {} out of range 0..{}", idx, total_len); |
