https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69537
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Yeah, in the match.pd hunk there is quite a lot of == INTEGER_TYPE. I bet ENUMERAL_TYPE can be always handled the same, the question is about BOOLEAN_TYPE.