This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/49621] [4.5/4.6/4.7 regression] ICE in trunc_int_for_mode, at explow.c:57
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 7 Jul 2011 12:07:52 +0000
- Subject: [Bug target/49621] [4.5/4.6/4.7 regression] ICE in trunc_int_for_mode, at explow.c:57
- Auto-submitted: auto-generated
- References: <bug-49621-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49621
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org
|gnu.org |
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-07 12:07:10 UTC ---
Created attachment 24706
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24706
gcc47-pr49621.patch
I believe the bug is in the ppc vector select patterns, comparing a vector mode
reg with const0_rtx in a NE is bound to confuse the middle-end. Both operands
of a comparison should always have either the same mode, or one should be
VOIDmode and the other should have integer or CC mode.
The following patch fixes this, completely untested so far.