mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-17 13:11:07 +00:00
Allow simd.(reduce_any|reduce_all) to work with #simd integers
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user