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
 
Format CR
Opcode 0x00008002
Extension C

Operands

  • rs1
    Address

Example

C.JR x1

// Return (if x1 is ra).

Related

More in C

Description

Jumps to the address in rs1 without linking.

Operation

PC = R[rs1];