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 <ja...@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