From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25220 invoked by alias); 6 Feb 2008 15:04:54 -0000 Received: (qmail 25206 invoked by uid 22791); 6 Feb 2008 15:04:53 -0000 X-Spam-Check-By: sourceware.org Received: from sd-11162.dedibox.fr (HELO sd-11162.dedibox.fr) (88.191.70.230) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 06 Feb 2008 15:04:14 +0000 Received: from sd-11162.dedibox.fr (localhost.localdomain [127.0.0.1]) by sd-11162.dedibox.fr (Postfix) with ESMTP id 690A492E96 for ; Wed, 6 Feb 2008 16:04:12 +0100 (CET) Received: from [10.10.1.196] (pat35-4-88-164-240-85.fbx.proxad.net [88.164.240.85]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by sd-11162.dedibox.fr (Postfix) with ESMTP id 23C5692CB5 for ; Wed, 6 Feb 2008 16:04:12 +0100 (CET) Subject: Multi-instruction macros From: Stelian Pop To: cgen@sourceware.org Content-Type: text/plain Date: Wed, 06 Feb 2008 15:04:00 -0000 Message-Id: <1202310251.6176.30.camel@galileo> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-AV-Checked: ClamAV using ClamSMTP 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/msg00005.txt.bz2 Hi, How do I implement multi-instruction macros in a .cpu file ? The assembler language for the microcontroller I'm working on has some pseudo instructions like for example: 'andi r0, #42'. This has to be translated into 'mov r1, #42' and 'andi r0, r1'. How do I do this ? And how do I specify that this pseudo instruction needs an extra register (r1 in the example above) ? Searching the archives, I found an old patch from Greg McGary implementing this(*), but it doesn't seem to have been incorporated into the mainline. Thanks, Stelian. (*): http://sourceware.org/ml/cgen/2001-q1/msg00142.html -- Stelian Pop