https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87900
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 61039 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61039&action=edit Patch which needs full testing, some more comments and testcases This works for the 2 testcases listed in this bug report.