c.sext.w
Pseudo-op
- Extension
- Zcb
- XLEN
- RV64 only
- Operand fields
rd_rs1_n0- Length
- 16-bit (compressed)
Encoding
listed in riscv-opcodes as a pseudo-op of c.addiw
| 1513 | 12 | 117 | 62 | 10 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 001 | 0 | rd/rs≠0 | 00000 | 01 | |||||||||||
Match 0x2001, mask 0xf07f. Source: $pseudo_op rv64_c::c.addiw c.sext.w rd_rs1_n0 15..13=1 12=0 6..2=0 1..0=1 in riscv-opcodes/extensions/rv64_zcb.
| Field | Bits | riscv-opcodes name |
|---|---|---|
| rd/rs≠0 | 11:7 | rd_rs1_n0 |
Description
Encoding only. riscv-opcodes lists c.sext.w as a pseudo-op of c.addiw: the same encoding as c.addiw with the fixed fields shown above.