Is it always equivalent to a same-named 32-bit instruction?
Not always. Some C/Zc instructions compress common 32-bit operations, while others have dedicated stack-frame or table-jump semantics.
Jump via register; write pc+2 to x1. CR format. rs1!=x0.
C.JALR (CR format) jumps to the rs1 target with its least-significant bit cleared and writes pc+2 to x1 (ra). It expands to jalr x1, 0(rs1). It is valid only when rs1 is not x0 (rs1=x0 is C.EBREAK); its link offset is 2 bytes, not the 4 bytes of a 32-bit JALR.
Connect 16-bit fields to compressed constraints, base-instruction semantics, and visible architectural state.
PC = 0x0000000000001000, x1 = 0x0000000000002001PC = 0x0000000000002000; x1 = 0x000000000000100216-bit encoding and field roles
Visible calculation
The target clears bit 0 and the link uses the compressed 2-byte length.
Control-flow path
1001 00001 00000 10x[rs1] & ~1 -> 0x0000000000002000jalr x1, 0(x1)pc <- 0x0000000000002000; x1/ra <- 0x0000000000001002C.JALR is the 16-bit encoding form for compressed jump and link register; its semantics and encodable register/immediate ranges must be read from the official C extension rules.
Understand this scenario with real code like «c.jalr ra # call *ra, retaddr to ra».
Not always. Some C/Zc instructions compress common 32-bit operations, while others have dedicated stack-frame or table-jump semantics.
Many 16-bit encodings can represent only a compressed register subset or fixed registers such as sp, ra, a0/a1.