public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/14109] New: Can not compile correctly with -O1 option on IA64.
@ 2004-02-11 13:47 wf_cs at yahoo dot com
  2004-02-11 16:29 ` [Bug optimization/14109] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: wf_cs at yahoo dot com @ 2004-02-11 13:47 UTC (permalink / raw)
  To: gcc-bugs

On ia64 with -O1 the compiler runs into dead cycle compiling this C code:

void
fft (double fxr[], int m)
{
  int l;
  int le;
  double u1 = 1.0;
  double w1;

  l = 1;
  while (1)
    {
      if (l > m)
        break; 
      {
        int count_12;
        int vaI_11;

        le = 1;
        vaI_11 = 2;
        count_12 = l;
        while (1)
          {
            if ((count_12 & 1) == 1)
              {
                le = le * vaI_11;
              }
            count_12 = count_12 / 2;
            if (count_12 == 0)
	      break;
            vaI_11 = vaI_11 * vaI_11;
          }
      }
      u1 = 1.0;
      w1 = cos (3.1415926 / 0.5);
      {
        int count_14;
        count_14 = le;
        while (1)
          {
            if (count_14 <= 0)
	      break;
            {
              int count_16;
              count_16 = le;
              while (1)
                {
                  if (count_16 <= 0)
		    break;
                  fxr[count_16] = fxr[count_16] + u1;
                  count_16 = count_16 - 1;
                }
            }
            u1 = u1 * w1;
            count_14 = count_14 - 1;
          }
      }
      l = l + 1;
    }
}

-- 
           Summary: Can not compile correctly with -O1 option on IA64.
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: wf_cs at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2004-03-31 12:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-11 13:47 [Bug optimization/14109] New: Can not compile correctly with -O1 option on IA64 wf_cs at yahoo dot com
2004-02-11 16:29 ` [Bug optimization/14109] " pinskia at gcc dot gnu dot org
2004-02-12  0:49 ` wf_cs at yahoo dot com
2004-02-12  0:54 ` [Bug optimization/14109] [tree-ssa]Can " wf_cs at yahoo dot com
2004-02-12  1:00 ` pinskia at gcc dot gnu dot org
2004-03-29 22:56 ` steven at gcc dot gnu dot org
2004-03-31  9:26 ` wf_cs at yahoo dot com
2004-03-31 12:47 ` pinskia 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).