This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/68332] [6 Regression] ICE: in rs6000_is_valid_mask, at config/rs6000/rs6000.c:17052 with __sync_and_and_fetch() @ powerpc


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68332

--- Comment #4 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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]