https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111765
--- Comment #2 from JuzheZhong <juzhe.zhong at rivai dot ai> --- (In reply to Andrew Pinski from comment #1) > For SVE: > /app/example.cpp:6:18: missed: missing target support for reduction on > variable-length vectors. > > I assume it is the same issue for RVV. Yeah. So may be we should adjust the dump check: /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_masked_load && !vect_variable_length } } } */ ?