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

            Bug ID: 111479
           Summary: [12/13 regression] aarch64 SVE ICE: in
                    compute_live_loop_exits, at tree-ssa-loop-manip.cc:248
           Product: gcc
           Version: 13.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: nsz at gcc dot gnu.org
  Target Milestone: ---

maybe related to bug 111478

$ cat bug.c
float a, b, c;
void *d;
int e, f, g;
void p() {
  float i = a;
  for (;;)
    for (e = 0; e < g; e++) {
      float j = c, k = b, l = k, h = j, m = 0.0, n = 0.0;
      for (f = 0; f < e; f++) {
        float o = b;
        m = n = o;
      }
      ((float *)d)[2 * e] = l;
      ((float *)d)[e] = h;
      ((float *)d)[2 * e] += m - i * n;
      ((float *)d)[2 * e + 1] += n + i * m;
    }
}

$ gcc -c -O3 -march=armv8-a+sve bug.c
during GIMPLE pass: vect
<source>: In function 'p':
<source>:4:6: internal compiler error: in compute_live_loop_exits, at
tree-ssa-loop-manip.cc:248
    4 | void p() {
      |      ^
0x10ca603 compute_live_loop_exits
       
/data/jenkins/workspace/GNU-toolchain/fsf-13/src/gcc/gcc/tree-ssa-loop-manip.cc:248
0x10ca603 add_exit_phis_var
       
/data/jenkins/workspace/GNU-toolchain/fsf-13/src/gcc/gcc/tree-ssa-loop-manip.cc:330
0x10ca603 add_exit_phis
       
/data/jenkins/workspace/GNU-toolchain/fsf-13/src/gcc/gcc/tree-ssa-loop-manip.cc:391
0x10ca603 rewrite_into_loop_closed_ssa_1
       
/data/jenkins/workspace/GNU-toolchain/fsf-13/src/gcc/gcc/tree-ssa-loop-manip.cc:604
0x10ca603 rewrite_into_loop_closed_ssa(bitmap_head*, unsigned int)
       
/data/jenkins/workspace/GNU-toolchain/fsf-13/src/gcc/gcc/tree-ssa-loop-manip.cc:626
0x1262514 execute
       
/data/jenkins/workspace/GNU-toolchain/fsf-13/src/gcc/gcc/tree-vectorizer.cc:1361
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1

Reply via email to