This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
derived operands
- To: cgen at sources dot redhat dot com
- Subject: derived operands
- From: "J. Johnston" <jjohnstn at cygnus dot com>
- Date: Mon, 19 Mar 2001 13:48:55 -0500
- Organization: Red Hat Inc.
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.