A ROT operation that rotates left could be introduced, with the right operand being the number of bits to rotate should be introduced.
This would:
- Make rotation handling more like left shift handling
- Replace RLC, RRC and SWAP (by ROT with right operand 1, -1 and leftwidth / 2)
- Allow backends to emit code directly for more rotations (e.g. making better use of the brlc instruction on z80n).
- Prepare for C2Y rotation functions.
Implemented in the next branch in [r14098].
Related
Commit: [r14098]
By now, many of the optimizations possible with the new ROT iCode have been implemented in the next branch.
Diff:
Diff:
Implemented by merging the next branch to trunk a while ago.