Re: [PR middle-end/81931] do not pass 0 precision in get_nonzero_bits

2017-08-24 Thread Richard Biener
On Thu, Aug 24, 2017 at 8:59 AM, Marc Glisse wrote: > On Thu, 24 Aug 2017, Aldy Hernandez wrote: > >> As discussed in the PR... >> >> CCP is passing a precision of 0 to get_nonzero_bits for complex >> numbers. With my last wide_int sign extension patch, the sign >> extension of -1 with a precisio

Re: [PR middle-end/81931] do not pass 0 precision in get_nonzero_bits

2017-08-24 Thread Marc Glisse
On Thu, 24 Aug 2017, Aldy Hernandez wrote: As discussed in the PR... CCP is passing a precision of 0 to get_nonzero_bits for complex numbers. With my last wide_int sign extension patch, the sign extension of -1 with a precision of 0 returns 0, whereas it previously was preturning all ones. Th

[PR middle-end/81931] do not pass 0 precision in get_nonzero_bits

2017-08-23 Thread Aldy Hernandez
As discussed in the PR... CCP is passing a precision of 0 to get_nonzero_bits for complex numbers. With my last wide_int sign extension patch, the sign extension of -1 with a precision of 0 returns 0, whereas it previously was preturning all ones. The attached patch calls element_precision, to a