ori
Or immediate
This instruction is defined by:
Decode Variables
Bits<12> imm = $encoding[31:20];
Bits<5> xs1 = $encoding[19:15];
Bits<5> xd = $encoding[11:7];
Execution
-
Pruned, XLEN == 64
-
Original
X[xd] = X[xs1] | $signed(imm);
if (implemented?(ExtensionName::Zicbop)) {
if (xd == 0) {
if (imm[4:0] == 0) {
Bits<12> offset = {imm[11:5], xd};
prefetch_instruction(offset);
} else if (imm[4:0] == 1) {
Bits<12> offset = {imm[11:5], xd};
prefetch_read(offset);
} else if (imm[4:0] == 3) {
Bits<12> offset = {imm[11:5], xd};
prefetch_write(offset);
}
}
}
X[xd] = X[xs1] | $signed(imm);