aboutsummaryrefslogtreecommitdiff
path: root/riscv
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2020-06-03 01:30:33 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2020-06-04 01:47:58 -0700
commit1ca0a2da77efd6b9153fc2f86669bfcdefa26d75 (patch)
tree598693418b877bc51d37ac3ca65486d0e4e62dbb /riscv
parent2a81bdf96cc471f9d4d3c16acb2b076259145801 (diff)
downloadspike-1ca0a2da77efd6b9153fc2f86669bfcdefa26d75.zip
spike-1ca0a2da77efd6b9153fc2f86669bfcdefa26d75.tar.gz
spike-1ca0a2da77efd6b9153fc2f86669bfcdefa26d75.tar.bz2
rvv: commitlog: fix vfslide
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv')
-rw-r--r--riscv/insns/vfslide1down_vf.h2
-rw-r--r--riscv/insns/vfslide1up_vf.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/riscv/insns/vfslide1down_vf.h b/riscv/insns/vfslide1down_vf.h
index b2ae345..66eeacc 100644
--- a/riscv/insns/vfslide1down_vf.h
+++ b/riscv/insns/vfslide1down_vf.h
@@ -23,7 +23,7 @@ if (i != vl - 1) {
} else {
switch (P.VU.vsew) {
case e16:
- P.VU.elt<float16_t>(rd_num, vl - 1) = f16(FRS1);
+ P.VU.elt<float16_t>(rd_num, vl - 1, true) = f16(FRS1);
break;
case e32:
P.VU.elt<float32_t>(rd_num, vl - 1, true) = f32(FRS1);
diff --git a/riscv/insns/vfslide1up_vf.h b/riscv/insns/vfslide1up_vf.h
index 7012fc1..b9c2817 100644
--- a/riscv/insns/vfslide1up_vf.h
+++ b/riscv/insns/vfslide1up_vf.h
@@ -23,7 +23,7 @@ if (i != 0) {
} else {
switch (P.VU.vsew) {
case e16:
- P.VU.elt<float16_t>(rd_num, 0) = f16(FRS1);
+ P.VU.elt<float16_t>(rd_num, 0, true) = f16(FRS1);
break;
case e32:
P.VU.elt<float32_t>(rd_num, 0, true) = f32(FRS1);