1
Fork 0

Fix alignment passed down to LLVM for simd_masked_load

This commit is contained in:
Jakub Okoński 2023-12-12 13:11:59 +01:00
parent 5b8bc568d2
commit 95b5a80f47
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -1568,7 +1568,7 @@ fn generic_simd_intrinsic<'ll, 'tcx>(
// Alignment of T, must be a constant integer value:
let alignment_ty = bx.type_i32();
let alignment = bx.const_i32(bx.align_of(values_ty).bytes() as i32);
let alignment = bx.const_i32(bx.align_of(values_elem).bytes() as i32);
// Truncate the mask vector to a vector of i1s:
let (mask, mask_ty) = {