https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103660
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 58915 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58915&action=edit scalar gimple testcases Note f2 is not optimized either. It should be simple as: (simplify (op:c (cnd @0 @00 integer_zero_p) (cnd @0 integer_zero_p @01)) (cnd @0 @00 @01))