On 12/19/23 2:53 AM, Sergei Lewis wrote:
gcc/ChangeLog:

     * config/riscv/riscv-protos.h (riscv_vector::expand_vec_cmpmem): New 
function
     declaration.

     * config/riscv/riscv-string.cc (riscv_vector::expand_vec_cmpmem): New
     function; this generates an inline vectorised memory compare, if and only 
if
     we know the entire operation can be performed in a single vector load per
     input

     * config/riscv/riscv.md (cmpmemsi): Try riscv_vector::expand_vec_cmpmem for
     constant lengths

gcc/testsuite/ChangeLog:

     * gcc.target/riscv/rvv/base/cmpmem-1.c: New codegen tests
     * gcc.target/riscv/rvv/base/cmpmem-2.c: New execution tests
     * gcc.target/riscv/rvv/base/cmpmem-3.c: New codegen tests
     * gcc.target/riscv/rvv/base/cmpmem-4.c: New codegen tests
So I just commited the updated version of this patch to the trunk. Thanks again for the work and your patience. I'll sort out patch #1 of this series next :-)

jeff

Reply via email to