https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112537
--- Comment #2 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
Currently, we don't have a compile option to disable cpymem by RVV.
I can tell how to disable it:
in riscv.md:
(define_expand "cpymem<mode>"
[(parallel [(set (match_operand:BLK 0 "general_operand")
(match_operand:BLK 1 "general_operand"))
(use (match_operand:P 2 ""))
(use (match_operand:SI 3 "const_int_operand"))])]
""
{
if (riscv_vector::expand_block_move (operands[0], operands[1], operands[2]))
DONE;
else if (riscv_expand_block_move (operands[0], operands[1], operands[2]))
DONE;
else
FAIL;
})
remove
if (riscv_vector::expand_block_move (operands[0], operands[1], operands[2]))
DONE;
Then it will be disabled.