Remove need for simd.splat

This commit is contained in:
gingerBill
2022-05-26 14:51:50 +01:00
parent c2610cb75e
commit f308f37ba1
4 changed files with 76 additions and 39 deletions

View File

@@ -2713,6 +2713,14 @@ bool check_is_castable_to(CheckerContext *c, Operand *operand, Type *y) {
return check_is_castable_to(c, &x, elem_dst);
}
if (is_type_simd_vector(dst)) {
Type *elem = base_array_type(dst);
if (check_is_castable_to(c, operand, elem)) {
return true;
}
}
return false;
}