Webcentive RISC-V Reference

mop.r.29

May-be-operation 29 (1 source register)

Extension
Zimop
XLEN
RV32 and RV64
Assembly (riscv-unified-db)
mop.r.29 xd, xs1
Length
32-bit

Encoding

listed in riscv-opcodes as a pseudo-op of mop.r.N

31302928272625222120191514121176210
110011011101rs1100rd1110011

Match 0xcdd04073, mask 0xfff0707f. Source: $pseudo_op rv_zimop::mop.r.N mop.r.29 rd rs1 30=1 27=1 26=1 21=0 20=1 31=1 29..28=0 25..22=7 14..12=4 6..2=0x1C 1..0=3 in riscv-opcodes/extensions/rv_zimop.

FieldBitsriscv-opcodes name
rs119:15rs1
rd11:7rd

Description

Unless redefined by another extension, this instruction simply writes 0 to X[xd]. The encoding allows future extensions to define it to read X[xs1], as well as write X[xd].

This is mop.r.29 from the MOP.R instruction family (n=29).

Description from riscv-unified-db, reformatted.

Operation

X[xd] = 0;

Pseudocode in riscv-unified-db’s IDL, quoted unchanged.

Specification and related pages