This question is about x86-64 assembly. Code is written in AT&T style syntax.
I want to do a jump to %rax+%rdx*8
, but this seems to be possible only with
two instructions:
lea (%rax,%rdx,8),%rax
jmp *%rax
However, since there is a way to do an even more complex thing:
jmp *(%rax,%rdx,8) # jumps to the address stored at address %rax+%rdx*8
I wonder if there is also a way of jumping directly to %rax+%rdx*8
.