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: [PATCH] Add MULT_HIGHPART_EXPR


On 2012-06-28 07:05, Jakub Jelinek wrote:
> 	PR tree-optimization/51581
> 	* tree-vect-stmts.c (permute_vec_elements): Add forward decl.
> 	(vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
> 	also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
> 	VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
> 	* tree-vect-patterns.c (vect_recog_divmod_pattern): Use
> 	MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
> 
> 	* gcc.dg/vect/pr51581-4.c: New test.

Ok, except,

> +	      if (0 && can_vec_perm_p (vec_mode, false, sel))
> +		icode = 0;

Testing hack left in.


r~


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