[Bug target/42431] New: wrong code for 200.sixtrack with vectorization and -fdata-sections
janis at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Dec 18 23:02:00 GMT 2009
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
More information about the Gcc-bugs
mailing list