Re: Require equal shift amounts for IFN_DIV_POW2

2020-01-06 Thread Jeff Law
On Thu, 2019-12-19 at 15:22 +, Richard Sandiford wrote: > IFN_DIV_POW2 currently requires all elements to be shifted by the > same amount, in a similar way as for WIDEN_LSHIFT_EXPR. This patch > enforces that when building the SLP tree. > > If in future targets want to support IFN_DIV_POW2 wi

Require equal shift amounts for IFN_DIV_POW2

2019-12-19 Thread Richard Sandiford
IFN_DIV_POW2 currently requires all elements to be shifted by the same amount, in a similar way as for WIDEN_LSHIFT_EXPR. This patch enforces that when building the SLP tree. If in future targets want to support IFN_DIV_POW2 without this restriction, we'll probably need the kind of vector-vector/