Webcentive RISC-V Reference

snez

Pseudo-op

Extension
RV32I/RV64I base integer
XLEN
RV32 and RV64
Operand fields
rs2, rd
Length
32-bit

Encoding

listed in riscv-opcodes as a pseudo-op of sltu

31252420191514121176210
0000000rs200000011rd0110011

Match 0x00003033, mask 0xfe0ff07f. Source: $pseudo_op rv_i::sltu snez rd rs2 31..25=0 19..15=0x0 14..12=3 6..2=0x0C 1..0=3 in riscv-opcodes/extensions/rv_i.

FieldBitsriscv-opcodes name
rs224:20rs2
rd11:7rd

Description

Encoding only. riscv-opcodes lists snez as a pseudo-op of sltu: the same encoding as sltu with the fixed fields shown above.

Specification and related pages