On 2/3/2026 6:32 AM, Robin Dapp wrote:
Hi,

This patch disables memsets with a size less than a vector for
xtheadvector.  As xtheadvector does not support fractional
LMUL we need to ensure to not emit those vectors that might
use it.

Regtested on rv64gcv_zvl512b.

Regards
  Robin


        PR target/123910

gcc/ChangeLog:

        * config/riscv/riscv-string.cc (riscv_expand_block_move):
        Remove !xtheadvector guard.
        (use_vector_stringop_p): Guard small LMULs.
        (check_vectorise_memory_operation): Ditto.

gcc/testsuite/ChangeLog:

        * gcc.target/riscv/rvv/autovec/pr123910.c: New test.
OK
jeff

Reply via email to