mop.r.10
May-be-operation 10 (1 source register)
- Extension
- Zimop
- XLEN
- RV32 and RV64
- Assembly (riscv-unified-db)
mop.r.10 xd, xs1- Length
- 32-bit
Encoding
listed in riscv-opcodes as a pseudo-op of mop.r.N
| 31 | 30 | 2928 | 27 | 26 | 2522 | 21 | 20 | 1915 | 1412 | 117 | 62 | 10 | |||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 0 | 00 | 1 | 0 | 0111 | 1 | 0 | rs1 | 100 | rd | 11100 | 11 | |||||||||||||||||||
Match 0x89e04073, mask 0xfff0707f. Source: $pseudo_op rv_zimop::mop.r.N mop.r.10 rd rs1 30=0 27=1 26=0 21=1 20=0 31=1 29..28=0 25..22=7 14..12=4 6..2=0x1C 1..0=3 in riscv-opcodes/extensions/rv_zimop.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| rs1 | 19:15 | rs1 |
| rd | 11:7 | rd |
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.10 from the MOP.R instruction family (n=10).
Description from riscv-unified-db, reformatted.
Operation
X[xd] = 0;
Pseudocode in riscv-unified-db’s IDL, quoted unchanged.