Skip to content

Commit

Permalink
Fix swizzle_mask type (dotnet#107460)
Browse files Browse the repository at this point in the history
That was catched by llvm debug asserts, the mask should be vector of 16 int8
  • Loading branch information
radekdoulik authored Sep 6, 2024
1 parent 6092b21 commit dc5dbab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mono/mono/mini/mini-llvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -10401,7 +10401,7 @@ MONO_RESTORE_WARNING
int stride_len = 32 / cn;
int stride_len_2 = stride_len >> 1;
int n_strides = 16 / stride_len;
LLVMValueRef swizzle_mask = LLVMConstNull (LLVMVectorType (i8_t, 16));
LLVMValueRef swizzle_mask = LLVMConstNull (LLVMVectorType (i1_t, 16));
for (int i = 0; i < n_strides; i++)
for (int j = 0; j < stride_len; j++)
swizzle_mask = LLVMBuildInsertElement (builder, swizzle_mask, const_int8(i * stride_len + ((stride_len_2 + j) % stride_len)), const_int32 (i * stride_len + j), "");
Expand Down

0 comments on commit dc5dbab

Please sign in to comment.