public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/32349]  New: ICE in df_refs_verify with -O2 -fmodulo-sched for spec tests
@ 2007-06-14 21:09 janis at gcc dot gnu dot org
  2007-06-14 21:12 ` [Bug middle-end/32349] " spark at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: janis at gcc dot gnu dot org @ 2007-06-14 21:09 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1586 bytes --]

Multiple tests in SPEC CPU2000 ICE when compiled with -O2 -fmodulo-sched on
powerpc64-linux with either -m32 or -m64; there are more failures with -m64. 
Here's a cut-down testcase, which I'm sure someone will be able to minimize
even more:


extern long *x1, *x2, *x3;

int
foo ()
{
  /* Switching the following two lines prevents the ICE.  */
  long *p1, *p2;
  long m, n, i;

  p1 = x1;
  p2 = x2;
  n = 0;
  for (i = *x3; 0 < i; i--)
    {
      m = (*p1++) ^ (*p2++);
      m = (m & 0x55555555) + ((m >> 1) & 0x55555555);
      m = (m & 0x33333333) + ((m >> 2) & 0x33333333);
      m = (m + (m >> 4)) & 0x0f0f0f0f;
      m = (m + (m >> 8));
      n += m;
    }
  return n;
}

Output when compiled with trunk revision 125693 (default is -m32):

elm3b145% /opt/gcc-nightly/trunk-20070614/bin/gcc -O2 -fmodulo-sched -c
bug0614-1.c
bug0614-1.c: In function ‘foo’:
bug0614-1.c:23: internal compiler error: in df_refs_verify, at df-scan.c:4066
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


-- 
           Summary: ICE in df_refs_verify with -O2 -fmodulo-sched for spec
                    tests
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janis at gcc dot gnu dot org
GCC target triplet: powerpc-unknown-linux-gnu


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


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

end of thread, other threads:[~2007-06-17 17:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-14 21:09 [Bug middle-end/32349] New: ICE in df_refs_verify with -O2 -fmodulo-sched for spec tests janis at gcc dot gnu dot org
2007-06-14 21:12 ` [Bug middle-end/32349] " spark at gcc dot gnu dot org
2007-06-15  1:25 ` [Bug middle-end/32349] [4.3 Regression] " pinskia at gcc dot gnu dot org
2007-06-17 13:51 ` zadeck at naturalbridge dot com
2007-06-17 14:14 ` paolo dot bonzini at lu dot unisi dot ch
2007-06-17 17:51 ` zadeck at gcc dot gnu dot org
2007-06-17 17:52 ` zadeck at naturalbridge dot com
2007-06-17 17:53 ` zadeck at naturalbridge dot com

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