public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/12941] New: [tree-ssa] loop miscompilation
@ 2003-11-07 14:47 falk at debian dot org
  2003-11-07 15:49 ` [Bug optimization/12941] " pinskia at gcc dot gnu dot org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: falk at debian dot org @ 2003-11-07 14:47 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [tree-ssa] loop miscompilation
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: falk at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: alphaev68-unknown-linux-gnu
  GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu

This makes builtin-bitops-1.c fail at -O3. Test case:

int main (void)
{
  unsigned long long x;
  int i;

  x = 2;
  for (i = 0; i < 64; i++)
    if (x & (1ULL << (64 - i - 1)))
      break;
  x = 4;
  for (i = 0; i < 64; i++)
    if (x & (1ULL << (64 - i - 1)))
      break;
  if (i != 61)
    abort ();
  return 0;
}

This aborts at -O and higher.

version: 3.5-tree-ssa 20031106


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

end of thread, other threads:[~2004-01-30 23:25 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-07 14:47 [Bug optimization/12941] New: [tree-ssa] loop miscompilation falk at debian dot org
2003-11-07 15:49 ` [Bug optimization/12941] " pinskia at gcc dot gnu dot org
2003-11-07 17:54 ` falk at debian dot org
2003-11-07 17:58 ` pinskia at gcc dot gnu dot org
2003-11-18  5:39 ` pinskia at gcc dot gnu dot org
2003-11-18  9:23 ` falk dot hueffner at student dot uni-tuebingen dot de
2003-11-18  9:35 ` pinskia at gcc dot gnu dot org
2003-12-01  4:38 ` pinskia at gcc dot gnu dot org
2003-12-01 14:22 ` falk at debian dot org
2004-01-23  2:19 ` [Bug optimization/12941] [tree-ssa] builtin-bitops-1.c miscompilation rth at gcc dot gnu dot org
2004-01-23 20:27 ` cvs-commit at gcc dot gnu dot org
2004-01-23 22:38 ` rth at gcc dot gnu dot org
2004-01-27 13:05 ` cvs-commit at gcc dot gnu dot org
2004-01-30 19:57 ` jbuck at gcc dot gnu dot org
2004-01-30 20:03 ` rth at redhat dot com
2004-01-30 23:25 ` jbuck 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).