This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/49621] [4.5 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: Tue, 19 Jul 2011 13:13:05 +0000
- Subject: [Bug target/49621] [4.5 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
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-07-19 13:09:51 UTC ---
Author: jakub
Date: Tue Jul 19 13:09:48 2011
New Revision: 176458
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=176458
Log:
Backport from mainline
2011-07-08 Jakub Jelinek <jakub@redhat.com>
PR target/49621
* config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
CONST0_RTX (dest_mode) instead of const0_rtx as second operand
of NE.
* config/rs6000/vector.md (vector_select_<mode>,
vector_select_<mode>_uns): Change second operand of NE to
CONST0_RTX (<MODE>mode) instead of const0_rtx.
* config/rs6000/altivec.md (*altivec_vsel<mode>,
*altivec_vsel<mode>_uns): Expect second operand of NE to be
zero_constant of the corresponding vector mode.
* config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
Likewise.
* gcc.target/powerpc/altivec-34.c: New test.
Added:
branches/gcc-4_5-branch/gcc/testsuite/gcc.target/powerpc/altivec-34.c
Modified:
branches/gcc-4_5-branch/gcc/ChangeLog
branches/gcc-4_5-branch/gcc/config/rs6000/altivec.md
branches/gcc-4_5-branch/gcc/config/rs6000/rs6000.c
branches/gcc-4_5-branch/gcc/config/rs6000/vector.md
branches/gcc-4_5-branch/gcc/config/rs6000/vsx.md
branches/gcc-4_5-branch/gcc/testsuite/ChangeLog