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

JuzheZhong <juzhe.zhong at rivai dot ai> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |juzhe.zhong at rivai dot ai

--- Comment #1 from JuzheZhong <juzhe.zhong at rivai dot ai> ---
Duplicate bug of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112537

It generates vector codes since it is lower int __builtin_memcpy

https://godbolt.org/z/f36feoW6x

Current expanding memcpy into RVV by default as long as TARGET_VECTOR is true.

More details see expand_block_move in riscv-string.cc

Maybe you need to add 

  if (!flag_tree_vectorize)
    return false;

in expand_block_move .

Reply via email to