This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: Derived Operands
- To: Tracy dot Kuhrt at microchip dot com
- Subject: Re: Derived Operands
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Fri, 6 Oct 2000 22:36:38 -0400
- Cc: cgen at sourceware dot cygnus dot com
- References: <OF3C6BE4FE.8883544C-ON0725696F.0080163F@microchip.com>
Hi -
On Thu, Oct 05, 2000 at 04:28:15PM -0700, Tracy.Kuhrt@microchip.com wrote:
> I am trying to use derived operands. I know that they are still a work in
> progress, but this is functionality that will help me with the CPU that I
> am porting with CGEN. [...]
>
> ; Derived operands
> (define-derived-operand
> (name m3-dst-reg-direct)
> [...]
> (encoding (+ m3-dst-reg))
> [...]
>
> (define-derived-operand
> (name m3-dst-reg-indirect)
> [...]
> (encoding (+ m3-dst-reg))
> [...]
> [...]
It looks wrong for these two encodings to be identical. The anyof-operand
will have a tough time telling the two alternatives apart.
> [error follows:]
> 13* [string-append " & " ...
> 14* [gen-sym #:unbound]
> [...]
#14 is the first sign of trouble.
> Any ideas where the problem might be?
Look at the encoding, then at the getter/setter pairs.
> Also, as a side note, is there any timeframe for when derived operands will
> be completed?
We have been completing parts as our various ports have required. This being
an open-source type project, it is hard to predict timeframes such as this.
Perhaps you might be interested in helping fund the work?
- FChE
PGP signature