Bug 13412 - unrecognizable insn when compiling altivec.h
Summary: unrecognizable insn when compiling altivec.h
Status: RESOLVED DUPLICATE of bug 11591
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 3.3.2
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-16 16:22 UTC by Michael Cieslinski
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host: powerpc-linux
Target: powerpc-linux
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
preprocessed source file (24.65 KB, text/plain)
2003-12-16 16:23 UTC, Michael Cieslinski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Cieslinski 2003-12-16 16:22:41 UTC
When I try to compile a program without optimisation (-O0) I get an internal 
compiler error.

message from gcc:

/usr/lib/gcc-lib/powerpc-linux/3.3.2/include/altivec.h: In function `vector 
short unsigned int vec_and(vector short unsigned int, vector short unsigned 
int)':
/usr/lib/gcc-lib/powerpc-linux/3.3.2/include/altivec.h:670: error: 
unrecognizable insn:
(insn 5 4 32 0 (nil) (set (reg:V8HI 119)
        (mem/f:V8HI (plus:SI (reg/f:SI 67 ap)
                (const_int 8 [0x8])) [0 a2+0 S16 A128])) -1 (nil)
    (nil))
/usr/lib/gcc-lib/powerpc-linux/3.3.2/include/altivec.h:670: internal compiler 
error: in extract_insn, at recog.c:2175
Please submit a full bug report, with preprocessed source if appropriate.


output from gcc -v:

Reading specs from /usr/lib/gcc-lib/powerpc-linux/3.3.2/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada --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-java-gc=boehm 
--enable-java-awt=xlib --enable-objc-gc --disable-multilib powerpc-linux
Thread model: posix
gcc version 3.3.2 (Debian)


gcc command line:

gcc -g -o matbug matbug.cpp -mcpu=7450 -maltivec -O0 -lstdc++ -Wall
 -pedantic -lefence -save-temps -fverbose-asm
Comment 1 Michael Cieslinski 2003-12-16 16:23:45 UTC
Created attachment 5341 [details]
preprocessed source file
Comment 2 Segher Boessenkool 2003-12-17 18:24:19 UTC
This is a duplicate of my favourite bug, PR11591 (aka altivec-5.c).
Comment 3 Andrew Pinski 2003-12-17 18:38:49 UTC
Closing as a dup of bug 11591.

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