https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110487
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 55440 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55440&action=edit Fixes the first part Here is the patch which fixes the first part, I will fix zero_one_p too.