This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11213] New: ICE on __builtin_ia32_psrlw with constant shift
- From: "sethml at ofb dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jun 2003 00:01:59 -0000
- Subject: [Bug c/11213] New: ICE on __builtin_ia32_psrlw with constant shift
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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