11591 – [3.4 only] ICE in gcc.dg/altivec-5.c (original) (raw)
I built and tested gcc-ss-3_3-20030714 using http://kegel.com/crosstool for two powerpc CPUs that lack altivec support, ppc405 and ppc750. They both had the following failure in 'make check-gcc':
FAIL: gcc.dg/altivec-5.c (test for excess errors) Excess errors: /crosstool-0.13/build/powerpc-750-linux-gnu/gcc-ss-3_3-20030714-glibc-2.2.5/gcc-ss-3_3-20030714/gcc/testsuite/gcc.dg/altivec-5.c:12: error: unrecognizable insn: (insn:HI 5 18 6 0 (nil) (set (reg/v:V4SI 120) (mem/f:V4SI (plus:SI (reg/f:SI 67 ap) (const_int 8 [0x8])) [4 b+0 S16 A128])) -1 (nil) (nil)) /crosstool-0.13/build/powerpc-750-linux-gnu/gcc-ss-3_3-20030714-glibc-2.2.5/gcc-ss-3_3-20030714/gcc/testsuite/gcc.dg/altivec-5.c:12: internal compiler error: in extract_insn, at recog.c:2175
Seems like there are two problems here:
- the compiler shouldn't ICE
- the test case should't be compiled for targets that don't have altivec in the triplet (or was that done on purpose?)
Comment 1 Drea Pinski 2003-07-19 18:10:15 UTC
Part 2 is false as it is compiled with -maltivec so that was done on purpose.
Comment 2 dank 2003-07-19 19:25:03 UTC
So when gcc is run with -maltivec, and gcc was configured for a CPU which doesn't support altivec, should the compiler gracefully exit with an error "This compiler was not built with support for altivec" ?
FWIW, I configured gcc with: /crosstool-0.13/build/powerpc-750-linux-gnu/gcc-ss-3_3-20030714-glibc-2.2.5/gcc-ss-3_3-20030714/configure --target=powerpc-750-linux-gnu --host=i686-host_pc-linux-gnu --prefix=/opt/cegl-2.0/powerpc-750-linux-gnu/gcc-ss-3_3-20030714-glibc-2.2.5 --with-cpu=750 --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-__cxa_atexit --enable-languages=c,c++ --enable-shared --enable-c99 --enable-long-long
Comment 3 Drea Pinski 2003-07-19 19:55:03 UTC
No because the support is in gcc, just not enabled by default.
Comment 4 Drea Pinski 2003-07-19 21:46:13 UTC
I can confirm this ICEs in 3.3.1 (20030714) with -mabi=altivec, it does not ICE so something so wrong when it comes to alignment, I think.
Comment 5 Drea Pinski 2003-07-19 22:31:13 UTC
GCC also ICE on the mainline (20030719).
Comment 6 Drea Pinski 2003-12-17 18:38:50 UTC
*** Bug 13412 has been marked as a duplicate of this bug. ***
Comment 7 Drea Pinski 2004-01-26 12:38:57 UTC
*** Bug 13780 has been marked as a duplicate of this bug. ***
Comment 11 andreasmeier80 2004-03-31 10:09:13 UTC
Can this patch go in 3.4.0
Comment 12 Mark Mitchell 2004-03-31 17:27:28 UTC
This can go in 3.4.1 after 3.4.0 is released.
Comment 13 Drea Pinski 2004-04-14 23:35:42 UTC
*** Bug 14961 has been marked as a duplicate of this bug. ***
Comment 15 Drea Pinski 2004-04-30 17:06:06 UTC
Fixed in 3.4.1.