Currently a line like
can be matched by
a rule like
however I would like to be able to match it with
In the Z80 port I see lots of lines like the example and can't optimize them in the peephole optimizer since I can't match them (except by lots of rules with the numbers written explicitly).
P.S.: Typical example I've seen often:
could be optimized into
if the value in bc is never read, but currently I can't match the ld -4(ix),c and ld -3(ix,b).