CGEN: Macro insns

Ben Elliston bje@redhat.com
Thu Jul 5 19:19:00 GMT 2001


>>>>> "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)?

Ben



More information about the Cgen mailing list