diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-09-10 20:52:33 -0700 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-09-22 21:08:54 -0700 |
commit | b8832af2d97f1936c8b813628c2941d22719d736 (patch) | |
tree | 75eacb7c0366752cf9cecfaa1de996d0177e20e3 /riscv/insns/vfwcvt_x_f_v.h | |
parent | 648e16e7783f1a91d7f65b4b8d38a84d917235d6 (diff) | |
download | spike-b8832af2d97f1936c8b813628c2941d22719d736.zip spike-b8832af2d97f1936c8b813628c2941d22719d736.tar.gz spike-b8832af2d97f1936c8b813628c2941d22719d736.tar.bz2 |
rvv: fix vfncvt/vfwcvt type checking
for each case, use explicit type checking
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/insns/vfwcvt_x_f_v.h')
-rw-r--r-- | riscv/insns/vfwcvt_x_f_v.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/riscv/insns/vfwcvt_x_f_v.h b/riscv/insns/vfwcvt_x_f_v.h index 6b266b2..ebd99c0 100644 --- a/riscv/insns/vfwcvt_x_f_v.h +++ b/riscv/insns/vfwcvt_x_f_v.h @@ -10,4 +10,14 @@ VI_VFP_CVT_SCALE { auto vs2 = P.VU.elt<float32_t>(rs2_num, i); P.VU.elt<int64_t>(rd_num, i, true) = f32_to_i64(vs2, STATE.frm, true); -}, true, (P.VU.vsew >= 16)) +}, +{ + ; +}, +{ + require(p->supports_extension(EXT_ZFH)); +}, +{ + require(p->supports_extension('F')); +}, +true, (P.VU.vsew >= 16)) |