Webcentive RISC-V Reference

csrwi

Pseudo-op

Extension
Zicsr
XLEN
RV32 and RV64
Operand fields
csr, zimm5
Length
32-bit

Encoding

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

3120191514121176210
csrzimm5101000001110011

Match 0x00005073, mask 0x00007fff. Source: $pseudo_op rv_zicsr::csrrwi csrwi csr zimm5 14..12=5 11..7=0x0 6..2=0x1C 1..0=3 in riscv-opcodes/extensions/rv_zicsr.

FieldBitsriscv-opcodes name
csr31:20csr
zimm519:15zimm5

Description

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

Specification and related pages