RE: the rtl expression does not match in define_peephole

2008-09-30 Thread Dave Korn
Dong Phuong wrote on 30 September 2008 17:32: > But when I define peepholes to reduce it, there's > nothing change. When I look at the rtl expression, I > see that there something beetween the instruction ADD > and CMP : > > (insn 18 16 19 0x0 (set (reg/v:HI 22) > (plus:HI (reg/v:HI 22)

the rtl expression does not match in define_peephole

2008-09-30 Thread Dong Phuong
I'm defining some peepholes for my machine. But I've got some troubles : I want to use peephole to reduce : ADD R4, 1 CMP R4, a--> CMPD1 R4, a - 1. The assembly code that cc1.exe generates has two instruction : ADD R4, 1 CMP R4, a But when I define peepholes to reduce it, t

the rtl expression does not match in define_peephole

2008-09-30 Thread Dong Phuong
I'm defining some peepholes for my machine. But I've got some troubles : I want to use peephole to reduce : ADD R4, 1 CMP R4, a--> CMPD1 R4, a - 1. The assembly code that cc1.exe generates has two instruction : ADD R4, 1 CMP R4, a But when I define peepholes to reduce it, t