aboutsummaryrefslogtreecommitdiff
path: root/riscv
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2020-04-19 20:03:35 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2020-04-19 20:03:35 -0700
commitaf7d8286f30c893e97f813570c5a81048d3cca28 (patch)
treed0a1ebd38ae7a48034470593fde879b01e5f6ae5 /riscv
parenta5c8c5f5e2c88b438bfbd5ee00a058db31a42a40 (diff)
downloadspike-af7d8286f30c893e97f813570c5a81048d3cca28.zip
spike-af7d8286f30c893e97f813570c5a81048d3cca28.tar.gz
spike-af7d8286f30c893e97f813570c5a81048d3cca28.tar.bz2
rvv: fix vfwredsum checking rule
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv')
-rw-r--r--riscv/insns/vfwredsum_vs_parallel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/riscv/insns/vfwredsum_vs_parallel.h b/riscv/insns/vfwredsum_vs_parallel.h
index 65b7c07..1c88a51 100644
--- a/riscv/insns/vfwredsum_vs_parallel.h
+++ b/riscv/insns/vfwredsum_vs_parallel.h
@@ -1,6 +1,8 @@
// Parallel version of vfwredsum
-VI_CHECK_REDUCTION(false)
+VI_CHECK_REDUCTION(true)
VI_VFP_COMMON
+require((P.VU.vsew == e16 && p->supports_extension('F')) || \
+ (P.VU.vsew == e32 && p->supports_extension('D'))); \
switch(p->VU.vsew) {
case e16: {