https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123969
--- Comment #2 from Ilya Kurdyukov <jpegqs at gmail dot com> ---
It does this:
vuint16m1_t v6 = __riscv_vmv_v_x_u16m1(range, vl);
After the variable "range" has been saved to the stack:
int range = quantval[i] * 2;
Probably uses the width of the variable rather than the vector element.
