http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53410
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-05-21 14:25:13 UTC --- Author: jakub Date: Mon May 21 14:25:03 2012 New Revision: 187715 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187715 Log: PR tree-optimization/53410 * fold-const.c (fold_binary_loc): Use build_zero_cst (type) instead of build_int_cst (type, 0) where vector types might be involved. Instead of build_int_cst (type, 1) convert the original integer_onep argument to the desired type. * gcc.c-torture/compile/pr53410-1.c: New test. * gcc.c-torture/compile/pr53410-2.c: New test. Added: trunk/gcc/testsuite/gcc.c-torture/compile/pr53410-1.c trunk/gcc/testsuite/gcc.c-torture/compile/pr53410-2.c Modified: trunk/gcc/ChangeLog trunk/gcc/fold-const.c trunk/gcc/testsuite/ChangeLog