https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71629

            Bug ID: 71629
           Summary: [7 Regression] ICE in lra_set_insn_recog_data, at
                    lra.c:964 w/ -O2 -mlra
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ra
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: powerpc-e500v2-linux-gnuspe

gcc-7.0.0-alpha20160619 snapshot ICEs when compiling the following testcase w/
-O2 (-O3, -Ofast) -mlra:

long long int nk;
int gn;

void
pf (long long int kx)
{
  int h7 = 1;
  unsigned int u1;

  for (u1 = 0; u1 != 0; ++u1)
    {
      unsigned long long int *fd = &kx;
      long long int *sm = &kx;
      int qg = 1;
      int *b6;

      while (qg != 0)
        {
 n5:
          h7 = 0;
          for (gn = -3; gn < 0; ++gn)
            {
              nk *= 2;
              if (qg / nk != 0)
                {
                  kx = -1;
                  while (*sm < 0)
                    {
                      *b6 = &qg;
                      ++kx;
                    }
                }
            }
          kx = *fd;
          if (*sm / qg > *sm / kx)
            sm = 0;
        }
    }
  if (h7 != 0)
    goto n5;
}

% powerpc-e500v2-linux-gnuspe-gcc-7.0.0-alpha20160619 -w -c -O2 -mlra
yqpf1ggk.c 
yqpf1ggk.c: In function 'pf':
yqpf1ggk.c:41:1: internal compiler error: in lra_set_insn_recog_data, at
lra.c:964

Reply via email to