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

            Bug ID: 106912
           Summary: [13 Regression] ICE in vect_transform_loops, at
                    tree-vectorizer.cc:1032
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Started between 20220703 and 20220710, at -O1+,
with file gcc.target/aarch64/simd_pcs_attribute-3.c :


$ cat z1.c
__attribute__ ((__simd__))
__attribute__ ((__nothrow__ , __leaf__ , __const__))
double foo (double x);
void bar(double *f, int n)
{
  int i;
  for (i = 0; i < n; i++)
    f[i] = foo(f[i]);
}
double foo(double x)
{
  return x * x / 3.0;
}


$ gcc-13-20220911 -c z1.c -O2 -fPIC -ftree-vectorize -fprofile-generate
during GIMPLE pass: vect
z1.c: In function 'bar':
z1.c:4:6: internal compiler error: in vect_transform_loops, at
tree-vectorizer.cc:1032
    4 | void bar(double *f, int n)
      |      ^~~
0xf5afe7 vect_transform_loops
        ../../gcc/tree-vectorizer.cc:1032
0xf5b394 try_vectorize_loop_1
        ../../gcc/tree-vectorizer.cc:1153
0xf5b394 try_vectorize_loop
        ../../gcc/tree-vectorizer.cc:1185
0xf5b904 execute
        ../../gcc/tree-vectorizer.cc:1299

Reply via email to