Skip to content

Commit 58c3624

Browse files
committed
[RISCV] Change type of Zicbop prefetch operand to GPRMem (llvm#139888)
Prior to this commit PREFETCH_* instructions considered their operand register to be a simple GPR which is not entirely correct as it is a base address for possible prefetching operation (According to cmobase v1.0.1)
1 parent 161e641 commit 58c3624

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfoZicbo.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class CBO_r<bits<12> optype, string opcodestr>
4343

4444
let hasSideEffects = 0, mayLoad = 1, mayStore = 1 in
4545
class Prefetch_ri<bits<5> optype, string opcodestr>
46-
: RVInstS<0b110, OPC_OP_IMM, (outs), (ins GPR:$rs1, simm12_lsb00000:$imm12),
46+
: RVInstS<0b110, OPC_OP_IMM, (outs), (ins GPRMem:$rs1, simm12_lsb00000:$imm12),
4747
opcodestr, "${imm12}(${rs1})"> {
4848
let Inst{11-7} = 0b00000;
4949
let rs2 = optype;

0 commit comments

Comments
 (0)