amdgcn: Disallow TImode vector permute

We don't support it and it doesn't happen without vector extensions, so
just remove the unhandled case.

Fixes gcc.dg/pr78575.c failure.

gcc/ChangeLog:

	* config/gcn/gcn.cc (gcn_vectorize_vec_perm_const): Disallow TImode.
This commit is contained in:
Andrew Stubbs 2023-11-10 16:07:25 +00:00
parent 965d232799
commit e7d3414dff

View file

@ -5050,7 +5050,9 @@ gcn_vectorize_vec_perm_const (machine_mode vmode, machine_mode op_mode,
rtx dst, rtx src0, rtx src1,
const vec_perm_indices & sel)
{
if (vmode != op_mode)
if (vmode != op_mode
|| !VECTOR_MODE_P (vmode)
|| GET_MODE_INNER (vmode) == TImode)
return false;
unsigned int nelt = GET_MODE_NUNITS (vmode);