diff options
author | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-04-01 00:45:20 -0700 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2020-05-04 09:50:05 -0700 |
commit | b216e03dd1c10d17693053a1eb83a20fff3242ea (patch) | |
tree | e143204aa5fa83b6bac321026e10f791444d39a2 /riscv/insns/vfnmadd_vv.h | |
parent | d78999f0c7c44317b0c3fc2d34217418b5dbe086 (diff) | |
download | spike-b216e03dd1c10d17693053a1eb83a20fff3242ea.zip spike-b216e03dd1c10d17693053a1eb83a20fff3242ea.tar.gz spike-b216e03dd1c10d17693053a1eb83a20fff3242ea.tar.bz2 |
rvv: fp16: support .vv instructions
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/insns/vfnmadd_vv.h')
-rw-r--r-- | riscv/insns/vfnmadd_vv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/riscv/insns/vfnmadd_vv.h b/riscv/insns/vfnmadd_vv.h index fc70574..7160ed7 100644 --- a/riscv/insns/vfnmadd_vv.h +++ b/riscv/insns/vfnmadd_vv.h @@ -1,6 +1,9 @@ // vfnmadd: vd[i] = -(vd[i] * vs1[i]) - vs2[i] VI_VFP_VV_LOOP ({ + vd = f16_mulAdd(f16(vd.v ^ F16_SIGN), vs1, f16(vs2.v ^ F16_SIGN)); +}, +{ vd = f32_mulAdd(f32(vd.v ^ F32_SIGN), vs1, f32(vs2.v ^ F32_SIGN)); }, { |