https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110117
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 55255 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55255&action=edit Patch which fixes this I am going to split this patch into 2, one for the do_store_flag change and one for the patch which fixes this part. The do_store_flag change is needed to hit this bug again.