ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,823 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

c.j

T1 riscv alu insn
Jump
SourceRISC-V Official Unified Database (riscv-unified-db) (riscv_unified_db)
Reliability TierT1 — Official Specification
ISA / Silicon ScopeRV32/RV64 Zca
RV32 / RV64 (Ratified & Standard Extensions)
License & VersionApache-2.0 / CC-BY-4.0
main
Upstreamhttps://github.com/riscv/riscv-unified-db
Privilegeuser
ExtensionsZca

Summary

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.

Syntax / Encoding

c.j imm | 101xxxxxxxxxxx01 (mask=0xe003 match=0xa001)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
16RV101xxxxxxxxxxx010xe003 / 0xa001

Operands

NameDescription
immbits [12,8,10:9,6,7,2,11,5:3], sign-extended, shifted << 1

Reference Notes

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 &pm;2 KiB range.
It expands to `jal` `x0, offset`.