This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [008/nnn] poly_int: create_integer_operand


On 10/23/2017 11:02 AM, Richard Sandiford wrote:
> This patch generalises create_integer_operand so that it accepts
> poly_int64s rather than HOST_WIDE_INTs.
> 
> 
> 2017-10-23  Richard Sandiford  <richard.sandiford@linaro.org>
> 	    Alan Hayward  <alan.hayward@arm.com>
> 	    David Sherwood  <david.sherwood@arm.com>
> 
> gcc/
> 	* optabs.h (expand_operand): Add an int_value field.
> 	(create_expand_operand): Add an int_value parameter and use it
> 	to initialize the new expand_operand field.
> 	(create_integer_operand): Replace with a declaration of a function
> 	that accepts poly_int64s.  Move the implementation to...
> 	* optabs.c (create_integer_operand): ...here.
> 	(maybe_legitimize_operand): For EXPAND_INTEGER, check whether the
> 	mode preserves the value of int_value, instead of calling
> 	const_int_operand on the rtx.
OK.
jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]