This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14110] New: altivec code misoptimized with any -O
- From: "lu_zero at gentoo dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Feb 2004 14:13:26 -0000
- Subject: [Bug optimization/14110] New: altivec code misoptimized with any -O
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
that problem happens while building libavicodec's idct_altivec.c.
I restricted the issue inq the idct_add_altivec() function.
the code is usually built with
"-O4 -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -pipe -ffast-math
-fomit-frame-pointer" and with gcc-3.2.3 produces correct code.
if I change it removing -O4 and not putting any other -O (tested -O2 and -O1)
the result is a fully working code.
--
Summary: altivec code misoptimized with any -O
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: lu_zero at gentoo dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC host triplet: powerpc-unknown-linux-gnu
GCC target triplet: powerpc-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14110