r251506 - in /trunk/gcc: ChangeLog optabs.c
rsandifo@gcc.gnu.org
rsandifo@gcc.gnu.org
Wed Aug 30 11:17:00 GMT 2017
Author: rsandifo
Date: Wed Aug 30 11:17:54 2017
New Revision: 251506
URL: https://gcc.gnu.org/viewcvs?rev=251506&root=gcc&view=rev
Log:
[54/77] Add explicit int checks for alternative optab implementations
expand_unop can expand narrow clz, clrsb, ctz, bswap, parity and
ffs operations using optabs for wider modes. These expansions
apply only to scalar integer modes (and not for example to vectors),
so the patch adds explicit checks for that.
2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
gcc/
* optabs.c (widen_leading): Change the type of the mode argument
to scalar_int_mode. Use opt_scalar_int_mode for the mode iterator.
(widen_bswap): Likewise.
(expand_parity): Likewise.
(expand_ctz): Change the type of the mode argument to scalar_int_mode.
(expand_ffs): Likewise.
(epand_unop): Check for scalar integer modes before calling the
above routines.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/optabs.c
More information about the Gcc-cvs
mailing list