public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/15927] New: THUMB -O2: strength-reduced iteration variable ends up off by 1
@ 2004-06-11  0:34 danfuzz at milk dot com
  2004-06-11  0:38 ` [Bug rtl-optimization/15927] " danfuzz at milk dot com
                   ` (28 more replies)
  0 siblings, 29 replies; 30+ messages in thread
From: danfuzz at milk dot com @ 2004-06-11  0:34 UTC (permalink / raw)
  To: gcc-bugs

When compiling a particular function with -O2 and targetting THUMB, I found that the compiler 
generated incorrect code. In particular it looks like an iteration variable that was strength-reduced ends 
up off by one: In each iteration, the value used for the variable in question appears to be the value that 
ought to be used in the *subsequent* iteration.

The line in question that gets erroneously compiled is:

    ic = scan->ics[n];

I'll attach the raw source (pared down but still verified to compile) and the annotated assembly file as 
soon as I figure out how to do that with bugzilla.

-- 
           Summary: THUMB -O2: strength-reduced iteration variable ends up
                    off by 1
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: rtl-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danfuzz at milk dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-mac-osx
  GCC host triplet: powerpc-mac-osx
GCC target triplet: arm-unknown-elf


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15927


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2004-08-25 16:11 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-11  0:34 [Bug rtl-optimization/15927] New: THUMB -O2: strength-reduced iteration variable ends up off by 1 danfuzz at milk dot com
2004-06-11  0:38 ` [Bug rtl-optimization/15927] " danfuzz at milk dot com
2004-06-11  0:41 ` danfuzz at milk dot com
2004-06-11  0:41 ` danfuzz at milk dot com
2004-06-11  0:42 ` danfuzz at milk dot com
2004-06-11  0:45 ` pinskia at gcc dot gnu dot org
2004-06-11  5:32 ` danfuzz at milk dot com
2004-06-15 23:18 ` danfuzz at milk dot com
2004-06-15 23:42 ` danfuzz at milk dot com
2004-06-16  9:32 ` rearnsha at gcc dot gnu dot org
2004-06-19  0:36 ` danfuzz at milk dot com
2004-06-19  0:37 ` danfuzz at milk dot com
2004-06-19  0:49 ` danfuzz at milk dot com
2004-06-21 16:15 ` danfuzz at milk dot com
2004-06-21 18:07 ` danfuzz at milk dot com
2004-06-21 18:55 ` danfuzz at milk dot com
2004-06-21 23:43 ` danfuzz at milk dot com
2004-06-22  0:09 ` danfuzz at milk dot com
2004-06-22  2:07 ` danfuzz at milk dot com
2004-06-22 14:41 ` [Bug middle-end/15927] " rearnsha at gcc dot gnu dot org
2004-06-23  0:45 ` danfuzz at milk dot com
2004-06-23 10:30 ` [Bug target/15927] " rearnsha at gcc dot gnu dot org
2004-06-23 11:26 ` cvs-commit at gcc dot gnu dot org
2004-06-23 11:39 ` rearnsha at gcc dot gnu dot org
2004-06-23 17:49 ` danfuzz at milk dot com
2004-08-23 19:24 ` mmitchel at gcc dot gnu dot org
2004-08-24  9:23 ` rearnsha at gcc dot gnu dot org
2004-08-25 15:56 ` cvs-commit at gcc dot gnu dot org
2004-08-25 16:09 ` cvs-commit at gcc dot gnu dot org
2004-08-25 16:11 ` rearnsha at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).