diff options
author | liweiwei <liweiwei@iscas.ac.cn> | 2021-10-14 09:49:10 +0800 |
---|---|---|
committer | Weiwei Li <liweiwei@iscas.ac.cn> | 2022-08-04 10:11:26 +0800 |
commit | 5de0c89c034cf64fdab8e36d2dc7488aa035d823 (patch) | |
tree | b5ed8f034d95a2fb22e7ec64d13c73484c2c059b /riscv/insns/fcvt_h_w.h | |
parent | 7812b01154c6a2f19e0d4bc9f00e5d5fcb9aec22 (diff) | |
download | spike-5de0c89c034cf64fdab8e36d2dc7488aa035d823.zip spike-5de0c89c034cf64fdab8e36d2dc7488aa035d823.tar.gz spike-5de0c89c034cf64fdab8e36d2dc7488aa035d823.tar.bz2 |
Modify F/D/Zfh instructions to add support for Zfinx/Zdinx/Zhinx{min} instructions
change the extention check for F/D/Zfh instructions
modify the F/D/Zfh instructions to read X regs when enable Zfinx
Co-authored-by: wangmeng <shusheng8495@hotmail.com>
Diffstat (limited to 'riscv/insns/fcvt_h_w.h')
-rw-r--r-- | riscv/insns/fcvt_h_w.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/insns/fcvt_h_w.h b/riscv/insns/fcvt_h_w.h index c082454..de4cbe5 100644 --- a/riscv/insns/fcvt_h_w.h +++ b/riscv/insns/fcvt_h_w.h @@ -1,5 +1,5 @@ -require_extension(EXT_ZFH); +require_either_extension(EXT_ZFH, EXT_ZHINX); require_fp; softfloat_roundingMode = RM; -WRITE_FRD(i32_to_f16((int32_t)RS1)); +WRITE_FRD_H(i32_to_f16((int32_t)RS1)); set_fp_exceptions; |