[ 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
State-Changed-From-To: open->analyzed State-Changed-Why: Confirmed. The bug is also present on mainline.
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
Duplicate of bug 10984 but is different testcase but still the same problem. *** This bug has been marked as a duplicate of 10984 ***