https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114769
--- Comment #3 from Feng Xue <fxue at os dot amperecomputing.com> ---
When half_type is null, and call chain would be:
vect_supportable_direct_optab_p (vinfo, sum_type, SAD_EXPR, NULL, ...)
-> get_vectype_for_scalar_type (vinfo, NULL)
-> get_related_vectype_for_scalar_type (vinfo, /*scalar_type= */NULL, ...)
if ((!INTEGRAL_TYPE_P (scalar_type)
&& !POINTER_TYPE_P (scalar_type)
&& !SCALAR_FLOAT_TYPE_P (scalar_type))
Here will be a segfault.
