My target supports shift with amount 1 only i.e. to shift a value by 5 bits, I need to have a loop with shift in the body. Similarly for the unknown amount of shift we need to have a loop for shift.
How can I insert this loop in DAG for shift operation?
Is there a way where I can have a call to a function and later expand to the shift code?
Which would be the better way to implement this?