J
Jump
J offset
Unconditionally jumps to a target offset.
Details
J performs an unconditional jump to a PC-relative offset. It is a pseudoinstruction for JAL x0, offset.
Pseudocode Operation
PC += sext(offset);
Example
J label
Encoding
Binary Layout
imm[20]
31
imm[10:1]
30:21
imm[11]
20
imm[19:12]
19:12
00000
11:7
1101111
6:0
Operands
-
offset
Jump Target