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

c.jalr

T1 riscv alu insn
Jump and Link Register
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.JALR (jump and link register) performs the same operation as C.JR, but additionally writes the address of the instruction following the jump (pc+2) to the link register, x1. C.JALR expands to jalr x1, 0(xs1).

Syntax / Encoding

c.jalr xs1 | 1001xxxxx0000010 (mask=0xf07f match=0x9002)

Binary Encodings (1)

WidthFormatBit PatternMask / Match
16RV1001xxxxx00000100xf07f / 0x9002

Operands

NameDescription
xs1bits [11:7], not 0

Reference Notes

C.JALR (jump and link register) performs the same operation as C.JR, but additionally writes the address of the instruction following the jump (pc+2) to the link register, x1.
C.JALR expands to jalr x1, 0(xs1).