On Mon, Aug 15, 2022 at 08:58:21AM -0700, Linus Torvalds wrote: > And no, disassembling the instruction wouldn't kill us either (we know > it's a "mov" instruction, so it's just the modrm bytes), but again it > really didn't seem worth the pain. The generated code with the fixed > registers wasn't optimal, but it was close enough that it really > doesn't seem to matter. I'm not at all suggesting we do this; but it might be insn_get_addr_ref() does what is needed.