[Bug c/11213] New: ICE on __builtin_ia32_psrlw with constant shift

sethml@ofb.net gcc-bugzilla@gcc.gnu.org
Tue Jun 17 00:02:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11213

           Summary: ICE on __builtin_ia32_psrlw with constant shift
           Product: gcc
           Version: 3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sethml@ofb.net
                CC: gcc-bugs@gcc.gnu.org,sethml@ofb.net

% cat test.c
typedef int v4hi __attribute__ ((mode(V4HI)));
v4hi shift4(v4hi val) {
  return __builtin_ia32_psrlw(val, 4);
}
% gcc -mmmx -c test.c
test.c: In function `shift4':
test.c:3: internal compiler error: in ix86_expand_binop_builtin, at
config/i386/i386.c:13029
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
% cat test2.c
typedef int v4hi __attribute__ ((mode(V4HI)));
v4hi shift4(v4hi val) {
  int shift = 4;
  return __builtin_ia32_psrlw(val, shift);
}
% gcc -mmmx -c test2.c
% gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/3.3/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --enable-__cxa_atexit
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm
--enable-java-awt=xlib --enable-objc-gc i386-linux
Thread model: posix
gcc version 3.3 (Debian)
% uname -a
Linux burn 2.4.20 #2 SMP Mon Mar 10 22:16:27 PST 2003 i686 GNU/Linux



More information about the Gcc-bugs mailing list