fix several 'three operand in far space' problems
[fw/sdcc] / src / z80 / peeph-z80.def
1 replace restart {
2         or      a,%1(%2)
3         or      a,a
4         jp      nz,%3
5 } by {
6         or      a,%1(%2)
7         ; Removed redundent OR
8         jp      nz,%3
9 }
10 replace restart {
11         ld      a,%1(%2)
12         bit     %3,a
13         jp      %4,%5
14 } by {
15         bit     %3,%1(%2)
16         jp      %4,%5
17 }