From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18512 invoked by alias); 1 Feb 2007 08:29:56 -0000 Received: (qmail 18493 invoked by uid 22791); 1 Feb 2007 08:29:55 -0000 X-Spam-Check-By: sourceware.org Received: from nf-out-0910.google.com (HELO nf-out-0910.google.com) (64.233.182.188) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 01 Feb 2007 08:29:48 +0000 Received: by nf-out-0910.google.com with SMTP id a25so754882nfc for ; Thu, 01 Feb 2007 00:29:45 -0800 (PST) Received: by 10.49.8.1 with SMTP id l1mr3171048nfi.1170318585052; Thu, 01 Feb 2007 00:29:45 -0800 (PST) Received: by 10.48.246.15 with HTTP; Thu, 1 Feb 2007 00:29:45 -0800 (PST) Message-ID: Date: Thu, 01 Feb 2007 08:29:00 -0000 From: "Mohamed Shafi" To: gcc-help@gcc.gnu.org Subject: Moving long long int using inline asm MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-02/txt/msg00004.txt.bz2 Hello all, There are two variables long long var1; long long var2; Using inline assembly how will i be able to move the value from var1 to var2, i.e var2 = var1 The architecture has only a 32 bit move instruction say mov32 Something like asm( "mov32 %0, %1" : "=r"(var2) : "r"(var1) ); would have worked fine for 32bit data types.What is the similar syntax for 64 bit data types? Can someone help me? Thanks in advance. Regards, Shafi