Webcentive RISC-V Reference

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

1513121176210
0010rd/rs≠00000001

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.

FieldBitsriscv-opcodes name
rd/rs≠011:7rd_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.

Specification and related pages