From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23998 invoked by alias); 18 Feb 2002 16:51:57 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 23569 invoked from network); 18 Feb 2002 16:51:47 -0000 Received: from unknown (HELO fencepost.gnu.org) (199.232.76.164) by sources.redhat.com with SMTP; 18 Feb 2002 16:51:47 -0000 Received: from ihemail2.lucent.com ([192.11.222.163] helo=ihemail2.firewall.lucent.com) by fencepost.gnu.org with esmtp (Exim 3.33 #1 (Debian)) id 16cr0z-000625-00 for ; Mon, 18 Feb 2002 11:51:45 -0500 Received: from nj7460exch001h.wins.lucent.com (h135-17-42-36.lucent.com [135.17.42.36]) by ihemail2.firewall.lucent.com (Switch-2.1.3/Switch-2.1.0) with ESMTP id g1IGphn10085 for ; Mon, 18 Feb 2002 11:51:44 -0500 (EST) Received: by nj7460exch001h.ho.lucent.com with Internet Mail Service (5.5.2650.21) id ; Mon, 18 Feb 2002 11:51:43 -0500 Message-ID: From: "Noonan, Michael E (Michael)" To: "Noonan, Michael E (Michael)" , "'help-gcc@gnu.org'" Subject: RE: assembly macro syntax... Date: Mon, 18 Feb 2002 09:14:00 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2002-02/txt/msg00173.txt.bz2 > I have a simple question for anyone who knows how to write assembly macros > for the GNU compiler. I am trying to port macros that target the Diab > compiler for PPC and am having a hell of a time figuring out the correct > syntax. The macros are used to test the PPC exception handler by forcing > the respective exceptions. Here are a couple of the Diab format assembly > macros for reference... > > VOID excpTestPage (ULONG input) > { > asm (" lwz r4,0(r3)"); > } > > VOID excpTestIsi (VOID) > { > asm (" .long 0x4BC00001"); // branch to 0x0F00_0000 + ip > } > > VOID excpTestTrap (ULONG input) > { > asm (" twgti r3,5"); // trap if input is greater than 5 > } > > I have scoured the GCC manual and cannot figure it out from the given > info. > > Any help is greatly appreciated. Thanks, Mike