I am working with intel pin to add some instrumentation in the binary (I think that is irrelevant to the question, but just letting you know in case). I want to detect LEA instructions such as (and I mostly observed only these kind of instructions):
lea    rax,[rbp-0x20]
My question is, can there be LEA instructions in Displacement + BaseReg + IndexReg * Scale (indirect with displacement and scaled index addressing mode) format, such as (just an example):
lea    rax,[rbp+rax*4-0x20]
Reason for asking: I need to add some special checks using intel pin if such instructions exists in x86-64. I read this manual, which does not specify if the above addressing mode might be used. I am using gcc to compile (in case needed).
