aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vfsub_vv.h
diff options
context:
space:
mode:
authorDave.Wen <dave.wen@sifive.com>2019-06-12 02:47:11 -0700
committerDave.Wen <dave.wen@sifive.com>2019-06-12 02:47:11 -0700
commit12b21b212150f6d6016b4b40bb2717d2ca0a185d (patch)
tree7a626d19daef7fe1545c807bf0319d7e52742b81 /riscv/insns/vfsub_vv.h
parenta8d9f48468ee2661ce40a59ed7ce0e4a39cb873f (diff)
downloadspike-12b21b212150f6d6016b4b40bb2717d2ca0a185d.zip
spike-12b21b212150f6d6016b4b40bb2717d2ca0a185d.tar.gz
spike-12b21b212150f6d6016b4b40bb2717d2ca0a185d.tar.bz2
rvv: move the common part into macro. except the funary00 and funary01
Diffstat (limited to 'riscv/insns/vfsub_vv.h')
-rw-r--r--riscv/insns/vfsub_vv.h10
1 files changed, 1 insertions, 9 deletions
diff --git a/riscv/insns/vfsub_vv.h b/riscv/insns/vfsub_vv.h
index 6c6f8b1..71e7a43 100644
--- a/riscv/insns/vfsub_vv.h
+++ b/riscv/insns/vfsub_vv.h
@@ -1,13 +1,5 @@
// vfsub.vv vd, vs2, vs1
VI_VFP_VV_LOOP
({
- switch(P.VU.vsew) {
- case e32:
- vd = f32_sub(vs2, vs1);
- break;
- case e16:
- case e8:
- default:
- softfloat_exceptionFlags = 1;
- };
+ vd = f32_sub(vs2, vs1);
})