C.JR
Compressed Jump Register
C.JR rs1
Unconditionally jumps to address in register.
Encoding
Binary Layout
?
31:16
1000
15:12
rs1_n0
11:7
0000010
6:0
Operands
-
rs1
Address
Example
C.JR x1
// Return (if x1 is ra).
Related
More in C
Reference
View in RISC-V Unprivileged ISA Specification ↗
RISC-V ISA Manual
Description
Jumps to the address in rs1 without linking.
Operation
PC = R[rs1];