https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111765
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- 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.
