aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vfwmacc_vf.h
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2020-04-21 20:35:32 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2020-05-04 09:50:05 -0700
commit5ba5c15188f6d9e63c3297ce51f825222d6073e1 (patch)
tree9e03c06aeef0d25513493d7b96ee85e0fdd50583 /riscv/insns/vfwmacc_vf.h
parentd09689d271d09892f3ec9337f3d633e20af6f19d (diff)
downloadspike-5ba5c15188f6d9e63c3297ce51f825222d6073e1.zip
spike-5ba5c15188f6d9e63c3297ce51f825222d6073e1.tar.gz
spike-5ba5c15188f6d9e63c3297ce51f825222d6073e1.tar.bz2
rvv: fp16: support vfwxxx.[wv][vf] instructions
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/insns/vfwmacc_vf.h')
-rw-r--r--riscv/insns/vfwmacc_vf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/riscv/insns/vfwmacc_vf.h b/riscv/insns/vfwmacc_vf.h
index 6ee011e..441fa0a 100644
--- a/riscv/insns/vfwmacc_vf.h
+++ b/riscv/insns/vfwmacc_vf.h
@@ -1,5 +1,8 @@
// vfwmacc.vf vd, vs2, rs1
VI_VFP_VF_LOOP_WIDE
({
+ vd = f32_mulAdd(rs1, vs2, vd);
+},
+{
vd = f64_mulAdd(rs1, vs2, vd);
})