diff options
-rw-r--r-- | riscv/insns/vid_v.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/riscv/insns/vid_v.h b/riscv/insns/vid_v.h index 97a0049..dc9a2d1 100644 --- a/riscv/insns/vid_v.h +++ b/riscv/insns/vid_v.h @@ -7,7 +7,7 @@ reg_t rd_num = insn.rd(); reg_t rs1_num = insn.rs1(); reg_t rs2_num = insn.rs2(); require((rd_num & (P.VU.vlmul - 1)) == 0); -if (insn.v_vm() == 0 && P.VU.vlmul >= 2) \ +if (insn.v_vm() == 0) \ require(insn.rd() != 0); for (reg_t i = P.VU.vstart ; i < P.VU.vl; ++i) { |