Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions riscv/v_ext_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()); \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe require(elt_width <= std::min(P.VU.ELEN, P.get_xlen()));? But it is a matter of opinion.

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; \
Expand Down
Loading