https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112109

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Robin Dapp <rd...@gcc.gnu.org>:

https://gcc.gnu.org/g:d468718c9a097aeb8794fb1a2df6db2c1064d7f7

commit r14-6341-gd468718c9a097aeb8794fb1a2df6db2c1064d7f7
Author: Robin Dapp <rd...@ventanamicro.com>
Date:   Fri Dec 1 10:07:23 2023 +0100

    RISC-V: Add vectorized strcmp and strncmp.

    This patch adds vectorized strcmp and strncmp implementations and
    tests.  Similar to strlen, expansion is still guarded by
    -minline-str(n)cmp.

    gcc/ChangeLog:

            PR target/112109

            * config/riscv/riscv-protos.h (expand_strcmp): Declare.
            * config/riscv/riscv-string.cc (riscv_expand_strcmp): Add
            strategy handling and delegation to scalar and vector expanders.
            (expand_strcmp): Vectorized implementation.
            * config/riscv/riscv.md: Add TARGET_VECTOR to strcmp and strncmp
            expander.

    gcc/testsuite/ChangeLog:

            * gcc.target/riscv/rvv/autovec/builtin/strcmp-run.c: New test.
            * gcc.target/riscv/rvv/autovec/builtin/strcmp.c: New test.
            * gcc.target/riscv/rvv/autovec/builtin/strncmp-run.c: New test.
            * gcc.target/riscv/rvv/autovec/builtin/strncmp.c: New test.

Reply via email to