The following testcase fails on 4.1.0 and 4.2.0 when compiled with:

gcc -O2 -march=athlon64 -ftree-vectorize -c test.c
test.c: In function ‘vis_clear_data’:
test.c:9: error: unrecognizable insn:
(insn 28 27 29 5 (set (reg:V4SF 73)
        (vec_duplicate:V4SF (reg/v:SI 71 [ vis_type ]))) -1 (nil)
    (nil))
test.c:9: internal compiler error: in extract_insn, at recog.c:2037


float vs_data[75];
void vis_clear_data ()
{
  int vis_type, i;
  for (i = 0; i < 75; i++)
    {
      vs_data[i] = (vis_type == 1);
    }
}


-- 
           Summary: [4.1/4.2 Regression] Unrecognizable insn on amd64 with -
                    ftree-vectorize
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: halcy0n at gentoo dot org


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

Reply via email to