aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vrgather_vx.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/vrgather_vx.h')
-rw-r--r--riscv/insns/vrgather_vx.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/riscv/insns/vrgather_vx.h b/riscv/insns/vrgather_vx.h
index a91d58c..058ffae 100644
--- a/riscv/insns/vrgather_vx.h
+++ b/riscv/insns/vrgather_vx.h
@@ -1,9 +1,8 @@
// vrgather.vx vd, vs2, rs1, vm # vd[i] = (rs1 >= VLMAX) ? 0 : vs2[rs1];
-require((insn.rd() & (P.VU.vlmul - 1)) == 0);
-require((insn.rs2() & (P.VU.vlmul - 1)) == 0);
+require_align(insn.rd(), P.VU.vflmul);
+require_align(insn.rs2(), P.VU.vflmul);
require(insn.rd() != insn.rs2());
-if (insn.v_vm() == 0)
- require(insn.rd() != 0);
+require_vm;
reg_t rs1 = RS1;