r251492 - in /trunk/gcc: ChangeLog combine.c ex...
rsandifo@gcc.gnu.org
rsandifo@gcc.gnu.org
Wed Aug 30 11:14:00 GMT 2017
Author: rsandifo
Date: Wed Aug 30 11:14:59 2017
New Revision: 251492
URL: https://gcc.gnu.org/viewcvs?rev=251492&root=gcc&view=rev
Log:
[40/77] Use scalar_int_mode for extraction_insn fields
insv, extv and eztzv modify or read a field in a register or
memory. The field always has a scalar integer mode, while the
register or memory either has a scalar integer mode or BLKmode.
The mode of the bit position is also a scalar integer.
This patch uses the type system to make that explicit.
2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
Alan Hayward <alan.hayward@arm.com>
David Sherwood <david.sherwood@arm.com>
gcc/
* optabs-query.h (extraction_insn::struct_mode): Change type to
opt_scalar_int_mode and update comment.
(extraction_insn::field_mode): Change type to scalar_int_mode.
(extraction_insn::pos_mode): Likewise.
* combine.c (make_extraction): Update accordingly.
* optabs-query.c (get_traditional_extraction_insn): Likewise.
(get_optab_extraction_insn): Likewise.
* recog.c (simplify_while_replacing): Likewise.
* expmed.c (narrow_bit_field_mem): Change the type of the mode
parameter to opt_scalar_int_mode.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/combine.c
trunk/gcc/expmed.c
trunk/gcc/optabs-query.c
trunk/gcc/optabs-query.h
trunk/gcc/recog.c
More information about the Gcc-cvs
mailing list