https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109638

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This should do it, I think:

(simplify
 (cond (lt @1 integer_onep@2) integer_zerop @1)
 (if (TYPE_UNSIGNED (type))
  (convert (eq @1 @2))))

Reply via email to