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,
(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(
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