aboutsummaryrefslogtreecommitdiff
path: root/riscv/decode.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/decode.h')
-rw-r--r--riscv/decode.h11
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 \