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]

derived operands


I recently ran into a problem that I tracked down to a derived-operand I used directly in an
instruction (i.e. did not wrapper it in an anyof-operand).  CGEN generated my opcode files fine,
however, when I attempted to assemble the insn that referred to the dndo, I got an assembler parse
error because it did not recognize the opindex of the dndo operand.  Adding an anyof-operand with
one choice solved the problem and I have since reworked my code so that I use the anyof-operand
properly to encapsulate two choices.

Is it intentional that a derived-operand cannot be used directly as an operand in an instruction? 
If yes, could CGEN at least fail when generating the opcodes files?

-- Jeff J.


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