[PATCH v2 3/3] RISC-V: cmpmem for RISCV with V extension

Jeff Law jeffreyalaw@gmail.com
Tue Jun 25 21:28:07 GMT 2024



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



More information about the Gcc-patches mailing list