I am working with some assembler masks. I am trying to logical left shift one register by another. By that I mean for example: I have register %rax = 0x10 and register %rcx = 0x2. I am attempting to use this command:
salq %rcx, %rax
to shift 0x10 by 2 bits. so 00001010 -> 00101000 (10 -> 40 in decimal) however I am unable to do that between two registers. One of them has to be an immediate or a varriable (which I dont want to use)
is it possible to do this?