This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

peephole2 and insn question


HI Folks,

Just faced with some problem:
If I define peephole2 and use 'insn' variable in condition, to which 
instruction parrern in a sequence 'insn' refers?

From gccint.info (Node: define_peephole) follows, that insn refers to the last 
insn being matched. 
How about peephole2 ?  

If I stick on a condition in a debugger I see that in p2 'insn' refers to the 
first insn being matched.

Am I wrong?

cheers,
Dmitry.
 
/********************************************************************
     ("`-''-/").___..--''"`-._     (\   Dimmy the Wild      UA1ACZ
      `6_ 6  )   `-.  (     ).`-.__.`)  Enterprise Information Sys 
      (_Y_.)'  ._   )  `._ `. ``-..-'   Nevsky prospekt,   20 / 44
    _..`--'_..-_/  /--'_.' ,'           Saint Petersburg,   Russia
   (il),-''  (li),'  ((!.-'             +7 (812)  3468202, 5585314
 ********************************************************************/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]