ORI
Logical OR Immediate
ORI rd, rs1, imm
Performs a bitwise logical OR with a sign-extended immediate.
Details
ORI performs a bitwise OR of register rs1 with the sign-extended 12-bit immediate, writing the result to rd.
Pseudocode Operation
R[rd] = R[rs1] | sext(imm);
Example
ORI x10, x11, 1
Encoding
Binary Layout
imm[11:0]
31:20
rs1
19:15
110
14:12
rd
11:7
0010011
6:0
Operands
-
rd
Destination register (integer) -
rs1
Source -
imm
Signed immediate value