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