On 07/13/2017 02:49 AM, Richard Sandiford wrote:
> The *_loc_descriptor routines for clz, popcount, bswap and rotate
> all required SCALAR_INT_MODE_P. This patch moves the checks into
> the caller (mem_loc_descriptor) so that the types of the mode
> parameters can be scalar_int_mode instead of machine_mode.
>
> The MOD handling in mem_loc_descriptor is also specific to
> scalar integer modes. Adding an explicit check allows
> typed_binop to take a scalar_int_mode too.
>
> 2017-07-13 Richard Sandiford <richard.sandif...@linaro.org>
> Alan Hayward <alan.hayw...@arm.com>
> David Sherwood <david.sherw...@arm.com>
>
> gcc/
> * dwarf2out.c (typed_binop): Change mode parameter to scalar_int_mode.
> (clz_loc_descriptor): Likewise. Remove SCALAR_INT_MODE_P check.
> (popcount_loc_descriptor): Likewise.
> (bswap_loc_descriptor): Likewise.
> (rotate_loc_descriptor): Likewise.
> (mem_loc_descriptor): Add is_a <scalar_int_mode> checks before
> calling the functions above.
OK.
jeff