diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-05-24 21:57:26 -0700 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-05-24 23:13:17 -0700 |
commit | a878edfef23ca7deb3c0698e8c9b1d674ba86cf0 (patch) | |
tree | dedf4ed8b05faae8cef82dc8497c786bc2e712e9 /riscv/decode.h | |
parent | a5a5ea054644311953da76e6d7614b0473a1c218 (diff) | |
download | spike-a878edfef23ca7deb3c0698e8c9b1d674ba86cf0.zip spike-a878edfef23ca7deb3c0698e8c9b1d674ba86cf0.tar.gz spike-a878edfef23ca7deb3c0698e8c9b1d674ba86cf0.tar.bz2 |
rvv: support [u]i8 type
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/decode.h')
-rw-r--r-- | riscv/decode.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/riscv/decode.h b/riscv/decode.h index 4b99c71..0cc5512 100644 --- a/riscv/decode.h +++ b/riscv/decode.h @@ -2183,15 +2183,20 @@ for (reg_t i = 0; i < P.VU.vlmax && P.VU.vl != 0; ++i) { \ DEBUG_RVV_FP_VV; \ VI_VFP_LOOP_END -#define VI_VFP_CVT_SCALE(BODY16, BODY32, is_widen) \ +#define VI_VFP_CVT_SCALE(BODY8, BODY16, BODY32, is_widen) \ if (is_widen) { \ VI_CHECK_DSS(false);\ } else { \ VI_CHECK_SDS(false); \ } \ - require((P.VU.vsew == e16 && p->supports_extension('F')) || \ - (P.VU.vsew == e32 && p->supports_extension('D'))); \ switch(P.VU.vsew) { \ + case e8: {\ + VI_VFP_LOOP_BASE \ + BODY8 \ + set_fp_exceptions; \ + VI_VFP_LOOP_END \ + } \ + break; \ case e16: {\ VI_VFP_LOOP_BASE \ BODY16 \ |