From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2902 invoked by alias); 7 Oct 2006 18:58:33 -0000 Received: (qmail 2894 invoked by uid 22791); 7 Oct 2006 18:58:32 -0000 X-Spam-Check-By: sourceware.org Received: from web27408.mail.ukl.yahoo.com (HELO web27408.mail.ukl.yahoo.com) (217.146.177.184) by sourceware.org (qpsmtpd/0.31) with SMTP; Sat, 07 Oct 2006 18:58:30 +0000 Received: (qmail 17178 invoked by uid 60001); 7 Oct 2006 18:58:28 -0000 Message-ID: <20061007185828.17176.qmail@web27408.mail.ukl.yahoo.com> Received: from [202.68.145.230] by web27408.mail.ukl.yahoo.com via HTTP; Sat, 07 Oct 2006 19:58:28 BST Date: Sat, 07 Oct 2006 18:58:00 -0000 From: ranjith kumar Subject: compilation error To: gcc-help@gcc.gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes 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 X-SW-Source: 2006-10/txt/msg00064.txt.bz2 Hi, ------------------------------------------------------- #include int main() { __m64 m1 = 0x00ff00a300bc00ae; __m64 m2 = 0x0001000100010001; __m64 m3; unsigned char *data; unsigned char ch; int i; //asm ("pmaddwd m1,m2\n\t"); m3 =_mm_madd_pi16 (m1, m2); printf("value is %x%x\n", m1); printf("value is %x%x\n", m2); printf("value is %x%x\n", m3); data = (char *)&m3; for ( i = 0; i < 8; i++) { printf("Element %d value is %x\n", i, data[i]); } return; } ------------------------------------------------------ I got the following error when I compiled the above program with gcc 4.0.0 compiler on pentium4 processor. The compilation command : gcc -march=pentium4 sample.c ---------------------------------------------- sample.c: In function `main': sample.c:7: invalid initializer sample.c:8: invalid initializer ---------------------------------------------- Can anyone help me. Thanks in advance. ___________________________________________________________ Try the all-new Yahoo! Mail. "The New Version is radically easier to use" – The Wall Street Journal http://uk.docs.yahoo.com/nowyoucan.html