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

            Bug ID: 77860
           Summary: [7 Regression] ICE in gimple_build_assign_1, at
                    gimple.c:420
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-7.0.0-alpha20161002 ICEs when compiling the following reduced testcase w/
-march=nehalem -mavx2 -O2 -fpeel-loops -ftree-loop-vectorize for x86_64:

void
t5 (int n9, unsigned short int s4)
{
  for (;;)
    {
      char gw = 0;
      short int jy;
      unsigned int hs;

      for (gw = 0; gw < 64; ++gw)
        {
          hs = jy = 0;
          s4 *= (hs != 0) ? hs : (jy -= (1 && gw + n9));
        }
      if (s4 == 0)
        n9 = s4;
    }
}

% x86_64-pc-linux-gnu-gcc-7.0.0-alpha20161002 -march=nehalem -mavx2 -O2
-fpeel-loops -ftree-vectorize -c ir9p4mm5.c                       
ir9p4mm5.c: In function 't5':
ir9p4mm5.c:2:1: internal compiler error: in gimple_build_assign_1, at
gimple.c:420
 t5 (int n9, unsigned short int s4)
 ^~

Reply via email to