This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: emiting insn with changed value
- To: Johan Rydberg <johan dot rydberg at netinsight dot se>
- Subject: Re: emiting insn with changed value
- From: Greg McGary <greg at mcgary dot org>
- Date: 09 Jan 2001 00:58:13 -0700
- Cc: cgen at sources dot redhat dot com
- References: <3A5AACD0.BFCAEFF1@netinsight.se>
Johan Rydberg <johan.rydberg@netinsight.se> writes:
> Is is possible to change a value in a macro insn?
As currently implemented, no. The emit form does nothing with the
arguments other than check that they are consistent with the syntax
string. The order in which the args appear has no influence, nor does
any effort to set values. About the only mildly interesting thing you
can do with macro insns today is omit some of the operands, which
causes them to be implicitly zeroed, and/or to change the order of
operands in the syntax string.
Doug had much grander plans for macro insns, but didn't implement yet.
I have been working on the problem at a snail's pace. I had some time
today to think about it, and will have some time tomorrow, so I might
make some progress.
Greg