Here is the V3 patch fix the comments, thanks.
https://gcc.gnu.org/pipermail/gcc-patches/2023-August/628650.html
--
Best,
Lehua
Hi Robin,
Thanks for reviewing.
Cleanup up here is good, right now it's not really an insn_type but
indeed just the number of operands. My original idea was to have an
insn type and a mostly unified expander that performs all necessary
operations depending on the insn_type. Just to give an id
Hi Lehua,
thanks for starting with the refactoring. I have some minor comments.
> +/* The value means the number of operands for insn_expander. */
> enum insn_type
> {
>RVV_MISC_OP = 1,
>RVV_UNOP = 2,
> - RVV_UNOP_M = RVV_UNOP + 2,
> - RVV_UNOP_MU = RVV_UNOP + 2,
> - RVV_UNOP_TU =
Hi,
This patch refactors the codes of expand_cond_len_{unop,binop,ternop}.
Introduces a new unified function expand_cond_len_op to do the main thing.
The expand_cond_len_{unop,binop,ternop} functions only care about how
to pass the operands to the intrinsic patterns.
Best,
Lehua
gcc/ChangeLog: