On 4/28/23 10:10, Robin Dapp wrote:
Hi,

I figured I'm going to start sending some patches that build on top
of the upcoming RISC-V autovectorization.  This one is obviously
not supposed to be installed before the basic support lands but
it's small enough that it shouldn't hurt to send it now.

This patch allows vector constants in riscv_const_insns in order
for them to be properly recognized as immediate operands such that
we can emit vmv.v.i instructions via autovec.

Bootstrapped and regtested on riscv32gcv and riscv64gcv.

Regards
  Robin

--

gcc/ChangeLog:

        * config/riscv/riscv.cc (riscv_const_insns): Add permissible
        vector constants.

gcc/testsuite/ChangeLog:

        * gcc.target/riscv/rvv/autovec/vmv-imm.c: New test.
OK for the trunk once the basic bits are in.
jeff

Reply via email to