This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: CGEN: Macro insns
Ben Elliston wrote:
>>>>>> "Dave" == Dave Brolley <brolley@redhat.com> writes:
>>>>>
>
> Dave> (dnmi insn-short "short form of insn" ()
> Dave> "insn $dest-reg"
> Dave> (emit insn dest-reg (src-reg dest-reg))
> Dave> )
>
> Dave> Unfortunately, when using the short form, the field associated with the
> Dave> src-reg operand is assigned the value zero rather than the value of the
> Dave> field associated with dest-reg, as I had expected. Is this supposed to
> Dave> work? Any other suggestions?
>
> If don't believe it has been done before, but it should work. Would
> you like to try fixing it? Also, have you tried:
>
> (emit insn dest-reg dest-reg)?
Just tried this. CGEN barfs. I should probably work on finishing the
rest of this port before taking time to see if I can fix this. In the
mean time, if anyone has the time......
Dave