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: ia64: replace zxt4 with addp6


On Fri, Jan 07, 2005 at 03:10:10PM +0100, Jan Beulich wrote:
> This replaces zxt4, which can only be executed on I-units, by addp4
> (usable on both I- and M-units), allowing tighter code to be generated.

Cool.

> +(define_insn "*shladdp4_internal"
> +  [(set (match_operand:DI 0 "gr_register_operand" "=r")
> +	(and:DI (ashift:DI (match_operand:DI 1 "gr_register_operand"
> "r")
> +			   (match_operand:DI 2 "const_int_operand"
> "n"))
> +		(match_operand:DI 3 "const_int_operand" "n")))]
> +  "EXTRA_CONSTRAINT (operands[2], 'R')

I would prefer that you create a shladd_log2_operand for this.
But otherwise this is a nice improvement as well.



r~


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