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

            Bug ID: 106433
           Summary: [13 Regression] ICE in vect_transform_loops, at
                    tree-vectorizer.cc:1032
           Product: gcc
           Version: 13.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: ---
            Target: aarch64-linux-gnu

gcc 13.0.0 20220724 snapshot (g:8b8103dcd2624936bd1f56ac2ee63d1fb779a7e4) ICEs
when compiling the following testcase w/ -march=armv8-a+sve -O1:

int n;

int
quux ()
{
  return n;
}

__attribute__ ((simd)) int
bar (int x)
{
  if (quux () != quux (0))
    n = 0;

  return quux ();
}

__attribute__ ((simd)) int
foo (void)
{
  return bar (0);
}

% aarch64-linux-gnu-gcc-13.0.0 -march=armv8-a+sve -O1 -c x83c1h7f.c
during GIMPLE pass: vect
x83c1h7f.c: In function 'foo.simdclone.0':
x83c1h7f.c:19:1: internal compiler error: in vect_transform_loops, at
tree-vectorizer.cc:1032
   19 | foo (void)
      | ^~~
0x7d0332 vect_transform_loops
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20220724/work/gcc-13-20220724/gcc/tree-vectorizer.cc:1032
0x11f9f73 try_vectorize_loop_1
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20220724/work/gcc-13-20220724/gcc/tree-vectorizer.cc:1153
0x11f9f73 try_vectorize_loop
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20220724/work/gcc-13-20220724/gcc/tree-vectorizer.cc:1183
0x11fa534 execute
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-13.0.0_p20220724/work/gcc-13-20220724/gcc/tree-vectorizer.cc:1299

Reply via email to