diff --git a/riscv/v_ext_macros.h b/riscv/v_ext_macros.h index b42a495cf6..5d9ee04119 100644 --- a/riscv/v_ext_macros.h +++ b/riscv/v_ext_macros.h @@ -90,6 +90,7 @@ static inline bool is_overlapped_widen(const int astart, int asize, #define VI_CHECK_ST_INDEX(elt_width) \ require_vector(false); \ require(elt_width <= P.VU.ELEN); \ + require(elt_width <= P.get_xlen()); \ float vemul = ((float)elt_width / P.VU.vsew * P.VU.vflmul); \ require(vemul >= 0.125 && vemul <= 8); \ reg_t UNUSED emul = vemul < 1 ? 1 : vemul; \