I'm getting the following ICE with gcc 4.3 20070604:

(sid)25247:[EMAIL PROTECTED]: ~] /usr/lib/gcc-snapshot/bin/gcc -c -O2 
-ftree-vectorize
~/ascpu-ascpu_x.c
/home/tbm/ascpu-ascpu_x.c: In function 'real_average':
/home/tbm/ascpu-ascpu_x.c:11: internal compiler error: in
supportable_narrowing_operation, at tree-vectorizer.c:1907
Please submit a full bug report,
with preprocessed source if appropriate.

Testcase:


struct cpu_load_struct
{
  long load[5];
};
struct
{
  float load[4];
}
average;
real_average (struct cpu_load_struct *average_history, long average_ptr)
{
  int i;
  for (i = 0; i < 3; ++i)
  {
    average.load[i] =
      (average.load[i] * average_history[average_ptr].load[i]);
  }
}


-- 
           Summary: [4.3 Regression] ICE in supportable_narrowing_operation,
                    at tree-vectorizer.c:1907
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com


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

Reply via email to