This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13992] New: Apparent vrsave problem with complex Altivec code and -O2
- From: "tjw at omnigroup dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Feb 2004 08:25:16 -0000
- Subject: [Bug optimization/13992] New: Apparent vrsave problem with complex Altivec code and -O2
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Sorry for the slightly large test case, but due to the nature of the (apparent) bug, I haven't been able
to make it significantly smaller.
../gcc/configure --prefix=/Users/bungi/Source/GNU/gcc/gcc-3.4/install --enable-
languages=c,c++,objc
Building the attached test case with:
$PREFIX/bin/g++ -O2 -g -Wall -fno-exceptions -maltivec -force_cpusubtype_ALL iterator_10.cpp
-o iterator_10
When run, the output will have the line:
vBuckets: (0x7fffdead, 0x7fffdead, 0x7fffdead, 0x7fffdead)
implying to me that the vrsave register isn't getting stored correctly, or maybe some bad stack math
is happening. Making the test case smaller (removing the other logging or some of the vector
operations) makes the 0x7fffdead disappear.
--
Summary: Apparent vrsave problem with complex Altivec code and -
O2
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: tjw at omnigroup dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-apple-darwin7.2.0
GCC host triplet: powerpc-apple-darwin7.2.0
GCC target triplet: powerpc-apple-darwin7.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13992