Skip to content

Commit 654bc61

Browse files
committed
Fix simd_shuffle_generic intrinsic
1 parent 5aeae05 commit 654bc61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/intrinsics/simd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>(
148148
let total_len = lane_count * 2;
149149

150150
let indexes =
151-
idx.iter().map(|idx| idx.unwrap_leaf().try_to_u16().unwrap()).collect::<Vec<u16>>();
151+
idx.iter().map(|idx| idx.unwrap_leaf().try_to_u32().unwrap()).collect::<Vec<u32>>();
152152

153153
for &idx in &indexes {
154154
assert!(u64::from(idx) < total_len, "idx {} out of range 0..{}", idx, total_len);

0 commit comments

Comments
 (0)