https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93505
--- Comment #13 from Segher Boessenkool <segher at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #11) > and so I'd say even if we just don't fix expand_binop, this shows an > optimization opportunity for the rs6000 backend > if the rotlw instruction only uses bottom 5 bits from the last operand. Yes, but there is no easy way to express that. For shifts the mask is one bit *more* (in the GPRs; it is not in vectors). But we could do more in the .md, sure.