Just a meta-bug for all the missing fold which are missing which are in the RTL version of simplify_*.
Confirmed, there might be others which I had forgot.
Some mentioned here: <http://gcc.gnu.org/wiki/Simplifications>.
Just for the record, I'm not sure about how much it is worth to have fold perform all the various sorts of shift/and simplifications that combine can do.
(In reply to Paolo Bonzini from comment #3) > Just for the record, I'm not sure about how much it is worth to have fold > perform all the various sorts of shift/and simplifications that combine can > do. Maybe not in fold, but with match-and-simplify it might be useful.