I was taught that I could use this instruction:
movl (arr,%r8,4),%eax
in case I wanted to do:
%eax=Mem[arr+4*%r8]
However this command doesn't seem to be recognized at all and I am getting an error:
Error: Found ',', expected ')'
Error: junk ',%r8,4)' after expression
I can't understand. Is this a real instruction or not?