]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Disable small memsets for xtheadvector [PR123910].
authorRobin Dapp <rdapp@oss.qualcomm.com>
Mon, 2 Feb 2026 09:28:08 +0000 (10:28 +0100)
committerRobin Dapp <rdapp@oss.qualcomm.com>
Thu, 5 Feb 2026 09:52:26 +0000 (10:52 +0100)
commitc3e3456007a46f5eb790817631a656a963326ddf
tree2edd797cad652a6c38442b6cf07a16592070588d
parent20b7be61787a20066b05fca17831c1419f1bd5cc
RISC-V: Disable small memsets for xtheadvector [PR123910].

This patch disables memsets with 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.

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.
* gcc.target/riscv/rvv/xtheadvector/pr114194-rv32.c: xfail.

Signed-off-by: Robin Dapp <rdapp@oss.qualcomm.com>
gcc/config/riscv/riscv-string.cc
gcc/testsuite/gcc.target/riscv/rvv/autovec/pr123910.c [new file with mode: 0644]
gcc/testsuite/gcc.target/riscv/rvv/xtheadvector/pr114194-rv32.c