Re: [Sdcc-user] Peephole rules

2016-12-17 Thread Maarten Brock
> >>I've loocked at this file (as I mentioned earlier). Some moments push me >> to ask questions. There are parameters like > > > >>notUsed('a'), >>notSame(%2 'push' 'pop'), >>notSame(%1 'xl' 'xh' 'yl' 'yh'), >>immdInRange(0 255 '+' %1 %2 %9), >>labelIsUncondJump(), >>labelRefCountChange >>and man

Re: [Sdcc-user] Peephole rules

2016-12-17 Thread Philipp Klaus Krause
On 16.12.2016 11:47, Травкин Роман wrote: > Is this rule correct? In PM0044 STM8 CPU Programming manual popw only > gets 16bit registers (X, Y) > > replace restart { > popwa > popwa > } by { > popwx > ; peephole 14a merged pop a into popw x > } if notUsed('a'), notUsed