Skip to content

Commit dc5dbab

Browse files
authored
Fix swizzle_mask type (dotnet#107460)
That was catched by llvm debug asserts, the mask should be vector of 16 int8
1 parent 6092b21 commit dc5dbab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mono/mono/mini/mini-llvm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10401,7 +10401,7 @@ MONO_RESTORE_WARNING
1040110401
int stride_len = 32 / cn;
1040210402
int stride_len_2 = stride_len >> 1;
1040310403
int n_strides = 16 / stride_len;
10404-
LLVMValueRef swizzle_mask = LLVMConstNull (LLVMVectorType (i8_t, 16));
10404+
LLVMValueRef swizzle_mask = LLVMConstNull (LLVMVectorType (i1_t, 16));
1040510405
for (int i = 0; i < n_strides; i++)
1040610406
for (int j = 0; j < stride_len; j++)
1040710407
swizzle_mask = LLVMBuildInsertElement (builder, swizzle_mask, const_int8(i * stride_len + ((stride_len_2 + j) % stride_len)), const_int32 (i * stride_len + j), "");

0 commit comments

Comments
 (0)