re PR target/49621 (ICE in trunc_int_for_mode, at explow.c:57)
authorJakub Jelinek <jakub@redhat.com>
Fri, 8 Jul 2011 20:09:58 +0000 (22:09 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 8 Jul 2011 20:09:58 +0000 (22:09 +0200)
commit70db9095eaefb4aeb985487010521d47ee018205
tree7bcf9c5b838741b00716f92f5cbc84858505c0ca
parentd6919c1f42428a468242b8d6c824361d18bc19b7
re PR target/49621 (ICE in trunc_int_for_mode, at explow.c:57)

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.

From-SVN: r176063
gcc/ChangeLog
gcc/config/rs6000/altivec.md
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/vector.md
gcc/config/rs6000/vsx.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/altivec-34.c [new file with mode: 0644]