This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: machine description porting question.
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Spundun Bhatt <spundun at ISI dot EDU>
- Cc: Hans-Peter Nilsson <hp at bitrange dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 22 Oct 2002 15:34:35 -0400
- Subject: Re: machine description porting question.
I would suggest that you base your port to the new processor on a
more recent version of GCC than gcc-2.95.
If you need to create a temporary register, use a define_expand
pattern which contains gen_reg_rtx (MODE), where "MODE" is whatever mode
register you need, in your case, matching the mode of the other arguments
to the subtract. For instance, look at the extendqisi2_no_power pattern
which implements a sign-extend as two arithmetic shifts to propagate the
sign bit.
David