Skip to content

Commit 568930d

Browse files
committed
fix: incorrect mnemonic for "vcpop.m"
The RISC-V Instruction Set Manual Volume I: Unprivileged Architecture (Version 20250508), section 30.15.2. Vector count population in mask `vcpop.m` says: > This instruction previously had the assembler mnemonic `vpopc.m` but was > renamed to be consistent with the scalar instruction. The assembler > instruction alias `vpopc.m` is being retained for software compatibility. Use the preferred mnemonic.
1 parent a606ebe commit 568930d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

model/riscv_insts_vext_mask.sail

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ mapping mmtype_mnemonic : mmfunct6 <-> string = {
8383
mapping clause assembly = MMTYPE(funct6, vs2, vs1, vd)
8484
<-> mmtype_mnemonic(funct6) ^ spc() ^ vreg_name(vd) ^ sep() ^ vreg_name(vs2) ^ sep() ^ vreg_name(vs1)
8585

86-
/* ************************* OPMVV (vpopc in VWXUNARY0) ************************** */
86+
/* ************************* OPMVV (vcpop in VWXUNARY0) ************************** */
8787
union clause ast = VCPOP_M : (bits(1), vregidx, regidx)
8888

8989
mapping clause encdec = VCPOP_M(vm, vs2, rd)
@@ -119,7 +119,7 @@ function clause execute(VCPOP_M(vm, vs2, rd)) = {
119119
}
120120

121121
mapping clause assembly = VCPOP_M(vm, vs2, rd)
122-
<-> "vpopc.m" ^ spc() ^ reg_name(rd) ^ sep() ^ vreg_name(vs2) ^ maybe_vmask(vm)
122+
<-> "vcpop.m" ^ spc() ^ reg_name(rd) ^ sep() ^ vreg_name(vs2) ^ maybe_vmask(vm)
123123

124124
/* ************************* OPMVV (vfirst in VWXUNARY0) ************************* */
125125
union clause ast = VFIRST_M : (bits(1), vregidx, regidx)

0 commit comments

Comments
 (0)