From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12899 invoked by alias); 21 Sep 2005 15:19:59 -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 12565 invoked by uid 22791); 21 Sep 2005 15:19:45 -0000 Received: from neon-gw-l3.transmeta.com (HELO neon-gw.transmeta.com) (63.209.4.196) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 21 Sep 2005 15:19:45 +0000 Received: from victor.transmeta.com (victor.transmeta.com [10.0.2.120]) by neon-gw.transmeta.com (Postfix) with ESMTP id 6C28F5F8047; Wed, 21 Sep 2005 08:19:42 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by localhost.transmeta.com (Postfix) with ESMTP id 332974F8030; Wed, 21 Sep 2005 08:19:43 -0700 (PDT) Received: from victor.transmeta.com ([127.0.0.1]) by localhost (victor [127.0.0.1]) (amavisd-new, port 10022) with LMTP id 23539-07-2; Wed, 21 Sep 2005 08:19:43 -0700 (PDT) Received: from casey.transmeta.com (casey.transmeta.com [10.10.25.22]) by victor.transmeta.com (Postfix) with ESMTP id 0DD884F8003; Wed, 21 Sep 2005 08:19:43 -0700 (PDT) Received: (from dje@localhost) by casey.transmeta.com (8.11.6/8.11.6) id j8LFJfm17782; Wed, 21 Sep 2005 08:19:41 -0700 From: Doug Evans MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17201.31245.791570.379181@casey.transmeta.com> Date: Wed, 21 Sep 2005 15:19:00 -0000 To: "Will Newton" Cc: Subject: Parsing mnemonic suffixes In-Reply-To: <0D107966AF6D79418315B7C5549F4B5104E016@lemail1.le.imgtec.org> References: <0D107966AF6D79418315B7C5549F4B5104E016@lemail1.le.imgtec.org> X-SW-Source: 2005-q3/txt/msg00031.txt.bz2 Will Newton writes: > > 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? I would expect this to work. I'll look into it.