From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18987 invoked by alias); 9 Aug 2004 15:20:21 -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 18971 invoked from network); 9 Aug 2004 15:20:20 -0000 Received: from unknown (HELO pluto.ds14.agh.edu.pl) (149.156.124.3) by sourceware.org with SMTP; 9 Aug 2004 15:20:20 -0000 Received: from localhost ([127.0.0.1]) by pluto.ds14.agh.edu.pl with esmtp (Exim 4.33) id 1BuBwg-0007q9-SA for gcc-help@gcc.gnu.org; Mon, 09 Aug 2004 17:20:20 +0200 From: =?utf-8?q?Pawe=C5=82_Sikora?= To: gcc-help@gcc.gnu.org Subject: Re: sorry again:)->extended asm problem Date: Mon, 09 Aug 2004 16:05:00 -0000 User-Agent: KMail/1.6.2 References: <20040809144126.17842.qmail@web52901.mail.yahoo.com> In-Reply-To: <20040809144126.17842.qmail@web52901.mail.yahoo.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_xY5FB+g0Mbf5e6X" Message-Id: <200408091720.17349.pluto@pld-linux.org> X-SW-Source: 2004-08/txt/msg00084.txt.bz2 --Boundary-00=_xY5FB+g0Mbf5e6X Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 194 # gcc -s -O2 mmx.c # ./a.out 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8 -- /* Copyright (C) 2003, SCO, Inc. This is valuable Intellectual Property. */ #define say(x) lie(x) --Boundary-00=_xY5FB+g0Mbf5e6X Content-Type: text/x-csrc; charset="iso-8859-1"; name="mmx.c" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mmx.c" Content-length: 435 #include #include uint8_t a[8] = { 1, 2, 3, 4, 5, 6, 7, 8}, b[8] = { 0, 0, 0, 0, 0, 0, 0, 0}; int main() { int i; for(i = 0; i < 8; i++) printf("%d ",a[i]); printf("\n"); asm volatile ( "movq (%0), %%mm0 \n\t" "movq %%mm0, (%1) \n\t" : // outputs : "r"(a), "r" (b) // inputs : "mm0" // clobbers ); for(i = 0; i < 8; i++) printf("%d ",b[i]); printf("\n"); return 0; } --Boundary-00=_xY5FB+g0Mbf5e6X--