From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9983 invoked by alias); 8 Jan 2008 17:46:43 -0000 Received: (qmail 9973 invoked by uid 22791); 8 Jan 2008 17:46:43 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 08 Jan 2008 17:46:23 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m08HkLko009320; Tue, 8 Jan 2008 12:46:21 -0500 Received: from pobox-3.corp.redhat.com (pobox-3.corp.redhat.com [10.11.255.67]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m08HkKZ8000656; Tue, 8 Jan 2008 12:46:20 -0500 Received: from [127.0.0.1] (vpn-15-92.rdu.redhat.com [10.11.15.92]) by pobox-3.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m08HkIGO008597; Tue, 8 Jan 2008 12:46:20 -0500 Message-ID: <4783B6ED.1090509@redhat.com> Date: Tue, 08 Jan 2008 17:46:00 -0000 From: Dave Brolley User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) MIME-Version: 1.0 To: Will Newton CC: Will Newton , cgen@sources.redhat.com Subject: Re: Assembler syntax with embedded spaces References: <0D107966AF6D79418315B7C5549F4B5164357E@lemail1.le.imgtec.org> <4783977B.3020202@redhat.com> <87a5b0800801080755m13457d2dx94f7506f796ae5d4@mail.gmail.com> In-Reply-To: <87a5b0800801080755m13457d2dx94f7506f796ae5d4@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00003.txt.bz2 Will Newton wrote: >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. > > It certainly seems that CGEN is not well suited to the assembly syntax. Two solutions: 1) Implement the FIXME described above 2) (ugly hack) treat the prefix as the mnemonic and the mnemonics as operands. Dave