aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vmsif_m.h
diff options
context:
space:
mode:
authorChih-Min Chao <chihmin.chao@sifive.com>2020-06-03 01:19:07 -0700
committerChih-Min Chao <chihmin.chao@sifive.com>2020-06-04 01:47:58 -0700
commit2a81bdf96cc471f9d4d3c16acb2b076259145801 (patch)
treeeac3e7b88d5daa194a7e89a14751b21f9df9b03c /riscv/insns/vmsif_m.h
parent3fbe5ad91f124c72b25873b65b712b099fe58486 (diff)
downloadspike-2a81bdf96cc471f9d4d3c16acb2b076259145801.zip
spike-2a81bdf96cc471f9d4d3c16acb2b076259145801.tar.gz
spike-2a81bdf96cc471f9d4d3c16acb2b076259145801.tar.bz2
rvv: fix vms[oib]f.m overlapping rule
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Diffstat (limited to 'riscv/insns/vmsif_m.h')
-rw-r--r--riscv/insns/vmsif_m.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/riscv/insns/vmsif_m.h b/riscv/insns/vmsif_m.h
index 73aadbc..6e941eb 100644
--- a/riscv/insns/vmsif_m.h
+++ b/riscv/insns/vmsif_m.h
@@ -1,9 +1,9 @@
-// vmpopc rd, vs2, vm
+// vmsif.m rd, vs2, vm
require(P.VU.vsew >= e8 && P.VU.vsew <= e64);
require_vector;
require(P.VU.vstart == 0);
-if (insn.v_vm() == 0)
- require(insn.rd() != 0 && insn.rd() != insn.rs2());
+require_vm;
+require(insn.rd() != insn.rs2());
reg_t vl = P.VU.vl;
reg_t rd_num = insn.rd();