For any operation that accepts an immediate, you can set the other operand to be the identity element of that operation: x = op(x, I)
. Here are some options:
- Add or subtract 0
- Perform bitwise OR with 0
- Perform bitwise AND with all 1s (-1 in 2’s complement)
- Multiply with or divide by 1
12
solved Is there any alternative use load immediate? [duplicate]