From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13925 invoked by alias); 20 Sep 2005 14:10:51 -0000 Mailing-List: contact cgen-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sources.redhat.com Received: (qmail 13757 invoked by uid 22791); 20 Sep 2005 14:10:40 -0000 Received: from multi.imgtec.com (HELO multi.imgtec.com) (194.200.65.239) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 20 Sep 2005 14:10:40 +0000 X-SEF-Processed: 5_0_0_812__2005_09_20_15_10_21 Received: from Unknown [192.168.5.239] by multi.imgtec.com - SurfControl E-mail Filter (5.0); Tue, 20 Sep 2005 15:10:21 +0100 Received: from lemail1.le.imgtec.org ([192.168.152.65]) by klmail1.kl.imgtec.org with Microsoft SMTPSVC(6.0.3790.1830); Tue, 20 Sep 2005 15:10:20 +0100 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Parsing mnemonic suffixes Date: Tue, 20 Sep 2005 14:10:00 -0000 Message-ID: <0D107966AF6D79418315B7C5549F4B5104E016@lemail1.le.imgtec.org> From: "Will Newton" To: X-SW-Source: 2005-q3/txt/msg00030.txt.bz2 I'm having a little trouble with getting a cgen generated assembler to parse multiple suffixes on a mnemonic. The instruction is specified like this: "add$sc$cond $reg,$reg,$reg" The operand "sc" can have a value of "S" or "" depending on whether this instruction sets condition flags. The operand "cond" can have one of a number of values ("Z", "EQ", "NE", "", etc.) depending on whether this instruction is conditional or not. When either $sc or $cond is used in isolation (e.g. "ADDS", "ADDEQ") the mnemonic is parsed correctly, when the two are used together (e.g. "ADDSEQ") the parse fails. Is it possible to parse an instruction like this with a cgen description? Thanks,