From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18312 invoked by alias); 7 Oct 2006 19:36:08 -0000 Received: (qmail 18301 invoked by uid 22791); 7 Oct 2006 19:36:07 -0000 X-Spam-Check-By: sourceware.org Received: from smtp105.sbc.mail.mud.yahoo.com (HELO smtp105.sbc.mail.mud.yahoo.com) (68.142.198.204) by sourceware.org (qpsmtpd/0.31) with SMTP; Sat, 07 Oct 2006 19:36:06 +0000 Received: (qmail 9748 invoked from network); 7 Oct 2006 19:36:04 -0000 Received: from unknown (HELO ?68.122.9.103?) (timothyprince@sbcglobal.net@68.122.9.103 with plain) by smtp105.sbc.mail.mud.yahoo.com with SMTP; 7 Oct 2006 19:36:04 -0000 Message-ID: <452801A3.60505@sbcglobal.net> Date: Sat, 07 Oct 2006 19:36:00 -0000 From: Tim Prince Reply-To: tprince@myrealbox.com User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: ranjith kumar CC: gcc-help@gcc.gnu.org Subject: Re: compilation error References: <20061007185828.17176.qmail@web27408.mail.ukl.yahoo.com> In-Reply-To: <20061007185828.17176.qmail@web27408.mail.ukl.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/msg00065.txt.bz2 ranjith kumar wrote: > 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 > ---------------------------------------------- Does it make a difference if you add LL suffix? Without that, your constant is implicitly typed int. Not that I can buy in to whatever you're trying to do.