From dc5dbab361edd77834d88a151d6ec9e9f3e980a6 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Fri, 6 Sep 2024 19:44:05 +0200 Subject: [PATCH] Fix swizzle_mask type (#107460) That was catched by llvm debug asserts, the mask should be vector of 16 int8 --- src/mono/mono/mini/mini-llvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/mono/mini/mini-llvm.c b/src/mono/mono/mini/mini-llvm.c index b52f42a5054e2..aa320d9d9850e 100644 --- a/src/mono/mono/mini/mini-llvm.c +++ b/src/mono/mono/mini/mini-llvm.c @@ -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), "");