This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: CGEN: Macro insns


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]