https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117811
--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 60826 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60826&action=edit Patch which seems to work I have no way to test this patch for arm so it would be a good idea if someone else takes it over but it seems to work for this testcase and it seems correct based on what is going on.