mop.rr.0
May-be-operation 0 (2 source registers)
- Extension
- Zimop
- XLEN
- RV32 and RV64
- Assembly (riscv-unified-db)
mop.rr.0 xd, xs1, xs2- Length
- 32-bit
Encoding
listed in riscv-opcodes as a pseudo-op of mop.rr.N
| 31 | 30 | 2928 | 27 | 26 | 25 | 2420 | 1915 | 1412 | 117 | 62 | 10 | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 00 | 0 | 0 | 1 | rs2 | rs1 | 100 | rd | 11100 | 11 | ||||||||||||||||||||
Match 0x82004073, mask 0xfe00707f. Source: $pseudo_op rv_zimop::mop.rr.N mop.rr.0 rd rs1 rs2 30=0 27=0 26=0 31=1 29..28=0 25=1 14..12=4 6..2=0x1C 1..0=3 in riscv-opcodes/extensions/rv_zimop.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| rs2 | 24:20 | rs2 |
| rs1 | 19:15 | rs1 |
| rd | 11:7 | rd |
Description
The Zimop extension defines 8 MOP instructions named MOP.RR.n, where n is an integer between 0 and 7, inclusive. Unless redefined by another extension, this instruction simply writes 0 to X[xd]. Its encoding allows future extensions to define it to read X[xs1] and X[xs2], as well as write X[xd].
This is mop.rr.0 from the MOP.RR instruction family (n=0).
Description from riscv-unified-db, reformatted.
Operation
X[xd] = 0;
Pseudocode in riscv-unified-db’s IDL, quoted unchanged.