Michael Hope <[email protected]> writes:
> (define_expand "movqi"
> [(set (match_operand:QI 0 "nonimmediate_operand")
> (match_operand:QI 1 "general_operand" ""))]
> ""
> {
> if (can_create_pseudo_p () && MEM_P (operands[1]))
> {
> rtx reg = copy_to_reg (XEXP (operands[1], 0));
> emit_insn (gen_movqi_mem (operands[0], reg));
> DONE;
> }
> }
> )
It's hideous, but you're going to need to do
insn = emit_insn (gen_movqi_mem (operands[0], reg));
add_reg_note (insn, REG_INC, reg);
add_reg_note is pretty new; if you don't have it in your sources, it
amounts to
REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_INC, reg, REG_NOTES (insn));
Ian