diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2019-06-06 03:25:04 -0700 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2019-06-18 08:56:11 -0700 |
commit | 833b965679f4502f83c66353bfc07a092cfac9f6 (patch) | |
tree | 293532625d0f60ec6b149b79b353f1ff1dda98c7 /riscv/insns/vfwmsac_vf.h | |
parent | 80ebc70e43e48c5a851348e898c13a2d8a8148d7 (diff) | |
download | spike-833b965679f4502f83c66353bfc07a092cfac9f6.zip spike-833b965679f4502f83c66353bfc07a092cfac9f6.tar.gz spike-833b965679f4502f83c66353bfc07a092cfac9f6.tar.bz2 |
rvv: add floating-point instructions
based on v-spec 0.7.1, support
sections: 14/15.3 ~ 15.4
element size: 32
Signed-off-by: Bruce Hoult <bruce@hoult.org>
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Signed-off-by: Dave Wen <dave.wen@sifive.com>
Diffstat (limited to 'riscv/insns/vfwmsac_vf.h')
-rw-r--r-- | riscv/insns/vfwmsac_vf.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/riscv/insns/vfwmsac_vf.h b/riscv/insns/vfwmsac_vf.h new file mode 100644 index 0000000..ea8f050 --- /dev/null +++ b/riscv/insns/vfwmsac_vf.h @@ -0,0 +1,5 @@ +// vfwmsac.vf vd, vs2, rs1 +VI_VFP_VF_LOOP_WIDE +({ + vd = f64_mulAdd(rs1, vs2, f64(vd.v ^ F64_SIGN)); +}) |