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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 50154
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50154&action=edit
gcc11-pr99025.patch

Untested fix.
The problem is that when simplify_gen_subreg is called on a SUBREG and
simplify_subreg fails to simplify it, because of mismatching element mode as
well as mismatching size, then simplify_gen_subreg just returns NULL instead of
creating the subreg.  The patch forces those SUBREGs into regs so that
simplify_gen_subreg will then always work.

Reply via email to