From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Elliston To: cgen@sources.redhat.com Subject: better handling of unknown operands Date: Mon, 19 Mar 2001 17:21:00 -0000 Message-id: <15030.45147.804718.597177@scooby.apac.redhat.com> X-SW-Source: 2001-q1/msg00176.html I observed some undesirable behavior in cgen this morning. Before I set out to fix it, I'd like to discuss possible solutions. When defining the assembly syntax string for an instruction, I typo'd the following: " .. $(rs) .." rather than: " .. ($rs) .." It looks like the parser encountered the `$', advanced to the `(' and stopped. In the generated code, I see a reference to OP () which is wrong. More generally, shouldn't cgen complain about any operand that appears in the syntax string but not the field format list, or vice-versa? Ben