Bug 8600 - [3.3/3.4 regression] [i686] internal error using builtin shift MMX functions
Summary: [3.3/3.4 regression] [i686] internal error using builtin shift MMX functions
Status: RESOLVED DUPLICATE of bug 10984
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 3.2.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: ice-on-valid-code
Depends on:
Blocks:
 
Reported: 2002-11-16 01:36 UTC by 166940
Modified: 2004-01-17 04:22 UTC (History)
3 users (show)

See Also:
Host: i386-linux
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2003-05-10 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 166940 2002-11-16 01:36:01 UTC
[ Reported to the Debian BTS as report #166940.
  Please CC 166940@bugs.debian.org on replies.
  Log of report can be found at http://bugs.debian.org/166940 ]

Trying to compile the following code:

// mmxtest.c
typedef int v4hi __attribute__ ((mode(V4HI)));
int main(int argc,char *argv[])
{
  v4hi a;
  v4hi result =  __builtin_ia32_psraw(a,1);
}

with: gcc-3.2 -mmmx -c mmxtest.c
and got the following error:
mmxtest.c: In function `main':
mmxtest.c:6: Internal compiler error in ix86_expand_binop_builtin, at
config/i386/i386.c:11503
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

I am getting the same error with psllw and psrlw, I have not tested
others.

							Petr

Release:
3.2.1 (Debian) (Debian unstable)

Environment:
System: Debian GNU/Linux (unstable)
Architecture: i686
host: i386-linux
Configured with: /home/packages/gcc/3.2/gcc-3.2-3.2.1ds5/src/configure -v --enable-languages=c,c++,java,f77,proto,objc,ada --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-java-gc=boehm --enable-objc-gc i386-linux
Comment 1 Volker Reichelt 2002-12-06 01:55:52 UTC
State-Changed-From-To: open->analyzed
State-Changed-Why: Confirmed.
    The bug is also present on mainline.
Comment 2 Dara Hazeghi 2003-05-09 21:43:04 UTC
From: Dara Hazeghi <dhazeghi@yahoo.com>
To: gcc-gnats@gcc.gnu.org
Cc:  
Subject: Re: target/8600: [i686] internal error using builtin shift MMX functions
Date: Fri, 9 May 2003 21:43:04 -0700

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit- 
 trail&database=gcc&pr=8600
 
 Hello,
 
 I can confirm that this bug still exists with gcc 3.2, 3.3 branch and  
 mainline. It seems related to PR 7204 (similar error on similar  
 __builtin statement).
 
 Dara
Comment 3 Andrew Pinski 2003-06-02 05:24:57 UTC
Duplicate of bug 10984 but is different testcase but still the same problem.

*** This bug has been marked as a duplicate of 10984 ***