From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3153 invoked by alias); 10 Jun 2003 11:21:42 -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 3106 invoked from network); 10 Jun 2003 11:21:37 -0000 Received: from unknown (HELO web41511.mail.yahoo.com) (66.218.93.94) by sources.redhat.com with SMTP; 10 Jun 2003 11:21:37 -0000 Message-ID: <20030610112137.24146.qmail@web41511.mail.yahoo.com> Received: from [130.233.152.40] by web41511.mail.yahoo.com via HTTP; Tue, 10 Jun 2003 04:21:37 PDT Date: Tue, 10 Jun 2003 11:21:00 -0000 From: Jan Zizka Subject: Insns with similar mnemonics To: cgen@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-q2/txt/msg00085.txt.bz2 Hi! I have a small problem with correcly assembling following insns (only examle): move x:(r0+symbol1),x0 move x:symbol2,x0 since the pharenteses might be aswell part of a symbol the first instruction is interpreted as it would be second one. This will of course make r0, which is really a register, undefined symbol. Now I have added my own parse function for that, but it's really not elegat :(. Any suggestions? See my insn definitions below: (dni move13meml/allreg "move x:(Rn+xxxx),DDDDD" () ("move x:($r+$imm16),$d5cap") (+ (f-op-4 #xF) d5cap (f-op-bit-2/6 #x10) r imm16) () () ) (dni move14mem/allreg "move x:imm16,DDDDD" () ("move x:$imm16,$d5cap") (+ (f-op-4 #xF) d5cap (f-op--7 #x54) imm16) () () ) Thanks! Jan