Allow simd.(reduce_any|reduce_all) to work with #simd integers

This commit is contained in:
gingerBill
2026-05-19 15:33:45 +01:00
parent 2094cd4768
commit a3240373ac

View File

@@ -1789,6 +1789,12 @@ gb_internal lbValue lb_build_builtin_simd_proc(lbProcedure *p, Ast *expr, TypeAn
LLVMValueRef args[1] = { arg0.value };
res.value = lb_call_intrinsic(p, name, args, gb_count_of(args), types, gb_count_of(types));
res.type = base_array_type(arg0.type);
if (!is_type_boolean(res.type)) {
res = lb_emit_conv(p, res, tv.type);
}
return res;
}