ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 919 microarchs · 15,488 chips · 105 sources
Arch:
Tier:

c.jal

T1 riscv alu insn
Jump and Link
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.JAL is an RV32C-only instruction that performs the same operation as C.J, but additionally writes the address of the instruction following the jump (pc+2) to the link register, x1. It expands to jal x1, offset.

Syntax / Encoding

c.jal imm | 001xxxxxxxxxxx01 (mask=0xe003 match=0x2001)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
16RV001xxxxxxxxxxx010xe003 / 0x2001

Operands

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

Reference Notes

C.JAL is an RV32C-only instruction that performs the same operation as C.J, but additionally writes the address of the instruction following the jump (pc+2) to the link register, x1.
It expands to `jal` `x1, offset`.