https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66217
--- Comment #6 from Segher Boessenkool <segher at gcc dot gnu.org> --- Author: segher Date: Tue Nov 24 14:04:11 2015 New Revision: 230811 URL: https://gcc.gnu.org/viewcvs?rev=230811&root=gcc&view=rev Log: rs6000: Fix for and_operand oversight (PR68332, PR67677) Calling rs6000_is_valid_and_mask on a reg instead of on a const_int is not a good idea, as PR68332 and PR67677 as well as testing with --enable-checking=yes,rtl show. Fix this. PR target/66217 PR target/67677 PR target/68332 * config/rs6000/predicates.md (and_operand): Check that the operand is a const_int before calling rs6000_is_valid_and_mask. Modified: trunk/gcc/ChangeLog trunk/gcc/config/rs6000/predicates.md