aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vredmaxu_vs.h
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2019-05-16 17:49:34 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2019-05-16 18:02:42 -0700
commit28229ac7f04e0ab0b2cb142782adbb656a84715d (patch)
treeccaf793f2014d0935c3e843b07b3c03ee7787878 /riscv/insns/vredmaxu_vs.h
parent2a990e1764aea73927612f1497e2368c5607b2b2 (diff)
downloadspike-28229ac7f04e0ab0b2cb142782adbb656a84715d.zip
spike-28229ac7f04e0ab0b2cb142782adbb656a84715d.tar.gz
spike-28229ac7f04e0ab0b2cb142782adbb656a84715d.tar.bz2
rvv: fix integer reduction instruction suffix
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/insns/vredmaxu_vs.h')
-rw-r--r--riscv/insns/vredmaxu_vs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/riscv/insns/vredmaxu_vs.h b/riscv/insns/vredmaxu_vs.h
new file mode 100644
index 0000000..ca33a95
--- /dev/null
+++ b/riscv/insns/vredmaxu_vs.h
@@ -0,0 +1,5 @@
+// vredmaxu.vs vd, vs2 ,vs1
+VI_VV_ULOOP_REDUCTION
+({
+ vdu_0_res = (vdu_0_res >= vs2u) ? vdu_0_res : vs2u;
+})