Re: [1/11] Use targetm.shift_truncation_mask more consistently

2011-07-07 Thread Richard Sandiford
Bernd Schmidt writes: > On 07/06/11 20:06, Richard Sandiford wrote: >> Bernd Schmidt writes: >>> At some point we've grown a shift_truncation_mask hook, but we're not >>> using it everywhere we're masking shift counts. This patch changes the >>> instances I found. >> >> The documentation reads:

Re: [1/11] Use targetm.shift_truncation_mask more consistently

2011-07-06 Thread Bernd Schmidt
On 07/06/11 20:06, Richard Sandiford wrote: > Bernd Schmidt writes: >> At some point we've grown a shift_truncation_mask hook, but we're not >> using it everywhere we're masking shift counts. This patch changes the >> instances I found. > > The documentation reads: > > Note that, unlike @code{S

Re: [1/11] Use targetm.shift_truncation_mask more consistently

2011-07-06 Thread Richard Sandiford
Bernd Schmidt writes: > At some point we've grown a shift_truncation_mask hook, but we're not > using it everywhere we're masking shift counts. This patch changes the > instances I found. The documentation reads: Note that, unlike @code{SHIFT_COUNT_TRUNCATED}, this function does @emph{not} app

Re: [1/11] Use targetm.shift_truncation_mask more consistently

2011-07-04 Thread Richard Henderson
On 07/01/2011 10:27 AM, Bernd Schmidt wrote: > * simplify-rtx.c (simplify_const_binary_operation): Use the > shift_truncation_mask hook instead of performing modulo by > width. Compare against mode precision, not bitsize. > * combine.c (combine_simplify_rtx, simplify_shift_

[1/11] Use targetm.shift_truncation_mask more consistently

2011-07-01 Thread Bernd Schmidt
At some point we've grown a shift_truncation_mask hook, but we're not using it everywhere we're masking shift counts. This patch changes the instances I found. Bernd * simplify-rtx.c (simplify_const_binary_operation): Use the shift_truncation_mask hook instead of performing modulo