On 5/31/23 20:36, juzhe.zh...@rivai.ai wrote:
From: Juzhe-Zhong <juzhe.zh...@rivai.ai>

This patch supports vector permutation for VLS only by vec_perm pattern.
We will support TARGET_VECTORIZE_VEC_PERM_CONST to support VLA permutation
in the future.

Fixed following comments from Robin.
Ok for trunk?

gcc/ChangeLog:

         * config/riscv/autovec.md (vec_perm<mode>): New pattern.
         * config/riscv/predicates.md (vector_perm_operand): New predicate.
         * config/riscv/riscv-protos.h (enum insn_type): New enum.
         (expand_vec_perm): New function.
         * config/riscv/riscv-v.cc (const_vec_all_in_range_p): Ditto.
         (gen_const_vector_dup): Ditto.
         (emit_vlmax_gather_insn): Ditto.
         (emit_vlmax_masked_gather_mu_insn): Ditto.
         (expand_vec_perm): Ditto.
OK.
jeff

Reply via email to