https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117458
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- /* Handle SUBREGs and hard REGs that were rejected by simplify_gen_subreg. */ else if (REG_P (x) || GET_CODE (x) == SUBREG) ... else { /* The only additional case we can do is MEM. */ gcc_assert (MEM_P (x));