riscv / riscv-bitmanip

Working draft of the proposed RISC-V Bitmanipulation extension
https://jira.riscv.org/browse/RVG-122
Creative Commons Attribution 4.0 International
204 stars 65 forks source link

show opcode as 7-bits like all other insn for unzip and zip #181

Closed psherman42 closed 8 months ago

psherman42 commented 2 years ago

[ 00100 ][ 11 ] should be written as [ 0010011 ] (0x13) or OP-IMM to be consistent with all other instructions.

Also, in the Operations section, should one of the foreach loops between unzip and zip be different like, for example,

foreach(i from 0 to xlen/2-1) {
    x(rd)[i] = X(rs1)[2*i]
    x(rd)[2*i+1] = X(rs1)[i+xlen/1]
}