https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103020

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That target hook is used mostly before expansion or during expansion:
gcc/gcc/expmed.c:           && targetm.vector_mode_supported_p (new_mode))
gcc/gcc/stor-layout.c:    && targetm.vector_mode_supported_p (trial))
gcc/gcc/targhooks.c:      && targetm.vector_mode_supported_p (result_mode))
gcc/gcc/tree.c:      && (!targetm.vector_mode_supported_p (mode)
gcc/gcc/c-family/c-attribs.c:  if (targetm.vector_mode_supported_p (mode))
gcc/gcc/d/d-target.cc:  if (!targetm.vector_mode_supported_p (TYPE_MODE
(ctype)))
so maybe using the mode in the backend only will be fine.

Reply via email to