https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94026
--- Comment #11 from Segher Boessenkool <segher at gcc dot gnu.org> --- Wrt rs6000: we have shift+mask+compare in just one insn (it is basic powerpc), and our (define_insn "*and<mode>3_imm_dot_shifted" pattern outputs this as just an "andi." insn when it can. But indeed the shift wasn't optimised away for us either.