https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64992
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note for rotate it is as simple as: (for cmp (eq ne) (simplify (cmp (rotate @0 INTEGER_CST@1) INTEGER_CST@2) (cmp @0 (rotate @2 @1)))) Let me see if that is already there or not and test that one out.