Browse Source
Merge pull request #994 from chihminchao/rvv-misc-2022-05-11
rvv: fix the checking eew and elen for index load
pull/995/head
Andrew Waterman
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
0 deletions
-
riscv/v_ext_macros.h
|
|
|
@ -84,6 +84,7 @@ static inline bool is_aligned(const unsigned val, const unsigned pos) |
|
|
|
|
|
|
|
#define VI_CHECK_ST_INDEX(elt_width) \ |
|
|
|
require_vector(false); \ |
|
|
|
require(elt_width <= P.VU.ELEN); \ |
|
|
|
float vemul = ((float)elt_width / P.VU.vsew * P.VU.vflmul); \ |
|
|
|
require(vemul >= 0.125 && vemul <= 8); \ |
|
|
|
reg_t emul = vemul < 1 ? 1 : vemul; \ |
|
|
|
|