From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5358 invoked by alias); 8 Jan 2008 15:55:21 -0000 Received: (qmail 5347 invoked by uid 22791); 8 Jan 2008 15:55:20 -0000 X-Spam-Check-By: sourceware.org Received: from nz-out-0506.google.com (HELO nz-out-0506.google.com) (64.233.162.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 08 Jan 2008 15:55:03 +0000 Received: by nz-out-0506.google.com with SMTP id r28so1828140nza.35 for ; Tue, 08 Jan 2008 07:55:01 -0800 (PST) Received: by 10.142.158.17 with SMTP id g17mr299440wfe.157.1199807700978; Tue, 08 Jan 2008 07:55:00 -0800 (PST) Received: by 10.142.165.2 with HTTP; Tue, 8 Jan 2008 07:55:00 -0800 (PST) Message-ID: <87a5b0800801080755m13457d2dx94f7506f796ae5d4@mail.gmail.com> Date: Tue, 08 Jan 2008 15:55:00 -0000 From: "Will Newton" To: "Dave Brolley" Subject: Re: Assembler syntax with embedded spaces Cc: "Will Newton" , cgen@sources.redhat.com In-Reply-To: <4783977B.3020202@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <0D107966AF6D79418315B7C5549F4B5164357E@lemail1.le.imgtec.org> <4783977B.3020202@redhat.com> X-IsSubscribed: yes Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00002.txt.bz2 On Jan 8, 2008 3:32 PM, Dave Brolley wrote: > CGEN will likely have problems with a prefix containing whitespace, i.e. > 'fd '. You will probably have to code 2 versions of the insn(s), one > with the prefix and one without. pmacros may be useful for you here in > order to reduce duplicate typing. I've just had a dig in the cgen source and noticed this comment in insn.scm: ; Return instruction mnemonic. ; This is computed from the syntax string. ; The mnemonic, as we define it, is everything up to, but not including, the ; first space or '$'. ; FIXME: Rename to syntax-mnemonic, and take a syntax string argument. and opc-itab.scm: ; Strip the mnemonic part from SYNTAX. ; (ie: everything up to but not including the first space or '$') ; If STRIP-MNEM-OPERANDS?, strip them too. I'm not sure what I want to do is possible.