Re: about emit_move_insn in define_expand

2008-12-18 Thread Uday P. Khedker
Yes, that is what was my first guess. That is the reason we avoid using force_reg in reload pass (by using !no_new_pseudos). Uday Khedker. -- Dr. Uday Khedker Associate Professor Department of Computer Science & Engg. IIT Bombay,

Re: about emit_move_insn in define_expand

2008-12-18 Thread daniel tian
(define_expand "movsi" [(set (match_operand:SI 0 "nonimmediate_operand" "") (match_operand:SI 1 "general_operand" "") )] "" { if(GET_CODE(operands[0])==MEM && GET_CODE(operands[1])!=REG) { if(!no_new_pseudos) { operands[1]=force_reg(

about emit_move_insn in define_expand

2008-12-17 Thread tian xiaonan
Hello, Dr. Uday Khedker: I just found that emit_move_insn function can't be used in define_expand pattern in the spim gcc4.0.2 platform. It will cause the Segmentation Fault. Something like recursion happened. I changed the define_expand "movsi" from: (define_expand "movsi" [(set