From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30069 invoked by alias); 6 Jun 2005 15:33:03 -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 29995 invoked by uid 22791); 6 Jun 2005 15:32:56 -0000 Received: from admin.voldemort.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.9) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 06 Jun 2005 15:32:56 +0000 Received: (qmail 30330 invoked from network); 6 Jun 2005 15:32:53 -0000 Received: from localhost (HELO ?192.168.189.167?) (nathan@127.0.0.1) by mail.codesourcery.com with SMTP; 6 Jun 2005 15:32:53 -0000 Message-ID: <42A46CBA.6030701@codesourcery.com> Date: Mon, 06 Jun 2005 15:33:00 -0000 From: Nathan Sidwell User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) MIME-Version: 1.0 To: Rayappan.External@infineon.com CC: gcc-help@gcc.gnu.org Subject: Re: Inline assembly References: <04EE7AD0450F7B498BA216312943A1A11D9EA1@blrse201.ap.infineon.com> In-Reply-To: <04EE7AD0450F7B498BA216312943A1A11D9EA1@blrse201.ap.infineon.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2005-06/txt/msg00042.txt.bz2 Rayappan.External@infineon.com wrote: > Hi, > > This kind of inline assembly is given in the GCC Test suits > > asm ("" : "=r" (tmp) : "0" (tmp)); > > As per my understanding the input and output remains in the same > register.But there is no instruction in the first double coats(""). > > The Question is > > What will be the value of r(tmp) after this instruction.Whether it is > equivalent to tmp will be unchanged from whatever was in it before. TGhe "0" is a constraint saying tmp should start out in the same register as the result of that asm. nathan -- Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC nathan@codesourcery.com :: http://www.planetfall.pwp.blueyonder.co.uk