public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/14478] New: rs6000 geu patterns generate incorrect code
@ 2004-03-08 10:00 amodra at bigpond dot net dot au
  2004-03-08 10:01 ` [Bug target/14478] " amodra at bigpond dot net dot au
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: amodra at bigpond dot net dot au @ 2004-03-08 10:00 UTC (permalink / raw)
  To: gcc-bugs

Compiling the following with -O results in a function that always returns zero,
instead of one that always returns 1.

int foo (int a, unsigned int x)
{
  unsigned int n = 0;

  while (a)
    x = x + 1, a = a << 1;

  return x >= n;
}

-- 
           Summary: rs6000 geu patterns generate incorrect code
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amodra at bigpond dot net dot au
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-linux


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


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

end of thread, other threads:[~2004-05-27  7:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-08 10:00 [Bug target/14478] New: rs6000 geu patterns generate incorrect code amodra at bigpond dot net dot au
2004-03-08 10:01 ` [Bug target/14478] " amodra at bigpond dot net dot au
2004-03-08 13:18 ` [Bug target/14478] rs6000 geu/ltu " amodra at bigpond dot net dot au
2004-03-09  3:41 ` pinskia at gcc dot gnu dot org
2004-03-09  4:10 ` amodra at bigpond dot net dot au
2004-03-09  4:15 ` pinskia at gcc dot gnu dot org
2004-03-09 13:39 ` cvs-commit at gcc dot gnu dot org
2004-05-16 19:48 ` [Bug target/14478] [3.4 only] " pinskia at gcc dot gnu dot org
2004-05-26 19:07 ` pinskia at gcc dot gnu dot org
2004-05-27 18:23 ` cvs-commit at gcc dot gnu dot org
2004-05-27 18:32 ` cvs-commit at gcc dot gnu dot org
2004-05-27 18:33 ` [Bug target/14478] [3.3 " amodra at bigpond dot net dot au

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).