cm.popretz
riscv_unified_db)RV32 / RV64 (Ratified & Standard Extensions)
main
userZcmpSummary
Destroys a stack frame: load ra and 0 to 12 saved registers from the stack frame, deallocate the stack frame, move zero to a0, return to ra. This instruction pops (loads) the registers in reg_list from stack memory, and then adjusts the stack pointer by stack_adj, move zero to a0 and then return to ra.
Syntax / Encoding
cm.popretz {reg_list}, stack_adj | 10111100xxxxxx10 (mask=0xff03 match=0xbc02)
Binary Encodings (1)
| Width | Format | Bit Pattern | Mask / Match |
|---|---|---|---|
| 16 | RV | 10111100xxxxxx10 | 0xff03 / 0xbc02 |
Operands
| Name | Description |
|---|---|
rlist | bits [7:4], not [0, 1, 2, 3] |
spimm | bits [3:2], shifted << 4 |
Reference Notes
Destroys a stack frame: load `ra` and 0 to 12 saved registers from the stack frame, deallocate the stack frame, move zero to `a0`, return to `ra`. This instruction pops (loads) the registers in `reg_list` from stack memory, and then adjusts the stack pointer by `stack_adj`, move zero to `a0` and then return to `ra`. Restrictions on stack_adj: * it must be enough to store all of the listed registers * it must be a multiple of 16 (bytes): ** for RV32 the allowed values are: 16, 32, 48, 64, 80, 96, 112 ** for RV64 the allowed values are: 16, 32, 48, 64, 80, 96, 112, 128, 144, 160