internal error using builtin shift MMX functions
>Submitter-Id: net
>Originator: Petr Konecny <pekon@ams.sunysb.edu>
>Organization: The Debian Project
>Confidential: no
>Synopsis:
>Severity: non-critical
>Priority: low
>Category: target
>Class: ice-on-legal-code
>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
>Description:
[ 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
>How-To-Repeat:
>Fix:
Reply to: