The following testcase triggers an ICE on 4.1.1 20060410:

static int NumLevels = 16, ImageWidth = 640, ImageHeight = 350;
int
main (int argc, char **argv)
{
  int i, j, FlipDir;
  unsigned char Color;
  unsigned char *Line;
  for (Color = NumLevels, i = 0; i < ImageHeight; i++)
    {
      for (j = 0; j < ImageWidth; j++)
        Line[j] = (FlipDir ? 1 : Color);
    }
}

gcc -O1 -maltivec -ftree-vectorize ../giflib.x.i
../giflib.x.i: In function 'main':
../giflib.x.i:4: internal compiler error: in emit_move_insn, at expr.c:3162


-- 
           Summary: [4.1 Regression] ICE in  emit_move_insn with -maltivec -
                    ftree-vectorize
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: halcy0n at gentoo dot org
  GCC host triplet: powerpc-unknown-linux-gnu


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

Reply via email to