https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90836
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-06-11 Blocks| |26163 Ever confirmed|0 |1 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- While it could be matched in match.pd variations would be quite a lot. I don't see where else it fits (apart from forwprop which already does fancy pattern matching...). You probably want to match generic INTEGER_CSTs and delay the actual verification into a with {}. I suppose popcount on integers other than long long work with the same pattern? Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=26163 [Bug 26163] [meta-bug] missed optimization in SPEC (2k17, 2k and 2k6 and 95)