This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/42431] New: wrong code for 200.sixtrack with vectorization and -fdata-sections
- From: "janis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Dec 2009 23:02:39 -0000
- Subject: [Bug target/42431] New: wrong code for 200.sixtrack with vectorization and -fdata-sections
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When compiled with current trunk and options "-m64 -O2 -ftree-vectorize
-maltivec -fdata-sections", CPU2000 test 200.sixtrack gets wrong results and
segfaults before finishing. I've reproduced the failure on POWER6 and POWER7
hardware. The source file that is miscompiled is midbloc6.f. If I add this
line:
if (icount1.eq.187) write (*,*) ' howdy'
to any two of the DO loops associated with labels 20, 40, 50, 110, 200, 210,
220, 260, and 280 then the test runs to completion and gets the expected
output.
The test passes with these options with GCC 4.4.0. I don't currently have a
reg
hunt setup on a machine with AltiVec but can do that it if would be useful.
--
Summary: wrong code for 200.sixtrack with vectorization and -
fdata-sections
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: janis at gcc dot gnu dot org
GCC target triplet: powerpc64-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42431