Without a rip-rel operand, prefetchit{0/1} is a nop. This is a
reasonable mistake for someone to make and is almost certainly not
what they are after.
This matches the same warning in gas.
Differential D142797
[X86] Make `prefetchit{0/1}` emit an assembler warning if the operand is not rip-rel goldstein.w.n on Jan 27 2023, 7:40 PM. Authored by
Details Without a rip-rel operand, prefetchit{0/1} is a nop. This is a This matches the same warning in gas.
Diff Detail
Event Timeline
Comment Actions I believe the uses of Warning in validateInstruction actually return false so they don't stop the parsing. Comment Actions Oh, I'm sorry I misread your earlier comment and thought you where referring to X86InstrInfo::verifyInstruction. Yeah X86AsmParser::validateInstruction seems to make sense, will give it a shot for V3.
|
How about Inst.getOperand(X86::AddrBaseReg)?