From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29873 invoked by alias); 5 Feb 2004 03:30:32 -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 29866 invoked from network); 5 Feb 2004 03:30:31 -0000 Received: from unknown (HELO WS0005.indiatimes.com) (203.199.93.15) by sources.redhat.com with SMTP; 5 Feb 2004 03:30:31 -0000 Received: from 192.168.57.15 (a2 [192.168.57.22]) by WS0005.indiatimes.com (8.9.3/8.9.3) with SMTP id IAA15520; Thu, 5 Feb 2004 08:43:25 +0530 From: "ganesh.yadav" Message-Id: <200402050313.IAA15520@WS0005.indiatimes.com> To: "ganesh.yadav", Reply-To: "ganesh.yadav" Subject: Help needed in compiling SSE2 asm code Date: Thu, 05 Feb 2004 03:30:00 -0000 X-URL: http://indiatimes.com Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-02/txt/msg00034.txt.bz2 "ganesh.yadav" wrote: Hi there, I was trying to compile the following source using gcc -march=pentium4 -msse2. However I get an error and am not able to understand why that is genearted. inline void test_sse2() { asm(".intel_syntax noprefix \n"); asm("mov eax, DWORD PTR[seq_b_ptr] n"); asm("movupd xmm0, [eax] \n") ; asm("mov eax, DWORD PTR[seq_a_ptr] \n"); asm("movupd xmm6, [eax]\n"); asm("movupd xmm1, mask \n"); asm("movupd xmm2, mask1\n"); asm("pand xmm6, xmm2\n"); asm("pslldq xmm6, 15\n"); asm("movupd xmm3, xmm6\n"); asm("movupd xmm4, xmm6\n"); asm("movupd xmm5, xmm6\n"); asm("emms \n") ; //switch back to FPU state. } /cygdrive/c/DOCUME~1/GANESH~1/LOCALS~1/Temp/cccFHtaQ.s: Assembler messages: /cygdrive/c/DOCUME~1/GANESH~1/LOCALS~1/Temp/cccFHtaQ.s:322: Error: no such instr uction: `popl %ebp' Iff I put this segemnent as spart of aa laargeer codde instead of writingg it as inline, it generates sevral movl and popl errors. I dont understand what I am missing. I know there are peoplee out there who have donee this, but i coulddnt find anything helpful using the search on gcc-help. Thaankss, Ganesh Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsahara.indiatimes.com and Bid Now! Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsahara.indiatimes.com and Bid Now!