https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116685
JuzheZhong <juzhe.zhong at rivai dot ai> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |juzhe.zhong at rivai dot ai --- Comment #4 from JuzheZhong <juzhe.zhong at rivai dot ai> --- The reason is LLVM default LMUL = 2 wheras GCC default LMUL = 1. However, GCC support smarter LMUL strategy which is dynamic LMUL. You should use -mrvv-max-lmul=dynamic. https://godbolt.org/z/eM99ExsGK All issues are fixed.