Re: [PATCH] Fix fold_binary_loc vector handling (PR tree-optimization/53410)

2012-05-21 Thread Richard Guenther
On Mon, May 21, 2012 at 3:55 PM, Jakub Jelinek wrote: > Hi! > > As the following testcases show, some places in fold_binary_loc > (haven't checked other routines) can attempt to optimize even vector > expressions, but in that case build_int_cst can't be used. > Instead, for zeros build_zero_cst ca

[PATCH] Fix fold_binary_loc vector handling (PR tree-optimization/53410)

2012-05-21 Thread Jakub Jelinek
Hi! As the following testcases show, some places in fold_binary_loc (haven't checked other routines) can attempt to optimize even vector expressions, but in that case build_int_cst can't be used. Instead, for zeros build_zero_cst can be used, for the two places which need to build 1 I'm just foldi