Re: [PATCH] Fix match.pd narrowing opt (PR tree-optimization/66187)

2015-05-19 Thread Richard Biener
On Mon, 18 May 2015, Jakub Jelinek wrote: > Hi! > > As the testcases show, for signed types we really should use SIGNED rather > than UNSIGNED as tree_int_cst_min_precision argument, that function doesn't > really do the desired thing with UNSIGNED for negative values and with > -fwrapv we just w

[PATCH] Fix match.pd narrowing opt (PR tree-optimization/66187)

2015-05-18 Thread Jakub Jelinek
Hi! As the testcases show, for signed types we really should use SIGNED rather than UNSIGNED as tree_int_cst_min_precision argument, that function doesn't really do the desired thing with UNSIGNED for negative values and with -fwrapv we just want the narrowing cast to not lose anything from the nu