c.j

C.J performs an unconditional control transfer. The offset is sign-extended and added to the pc to form the jump target address. C.J can therefore target a ±2 KiB range. It expands to `jal` `x0, offset`.

Synopsis

c.j imm

Encoding

Type:

012356789101112131501immimmimmimmimmimmimmimm101

RISC-V Instruction Encoder/Decoder

open c.j in rvcodecjs

Availability