czero.nez

If xs2 contains a nonzero value, this instruction writes the value zero to xd. Otherwise, this instruction copies the contents of xs1 to xd. This instruction carries a syntactic dependency from both xs1 and xs2 to xd. Furthermore, if the Zkt extension is implemented, this instruction's timing is independent of the data values in xs1 and xs2.

Synopsis

czero.nez xd, xs1, xs2

Encoding

Type: R

0671112141519202425310110011xd111xs1xs20000111
funct7: 0000111
funct3: 111
opcode: 0110011

RISC-V Instruction Encoder/Decoder

open czero.nez in rvcodecjs

Availability