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

            Bug ID: 117554
           Summary: [15 Regression] ICE building 538.imagick_r with SVE
                    -msve-vector-bits=128
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: aarch64-sve, ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ktkachov at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64

Building imagick ICEs on aarch64 SVE. The reduced testcase is:
typedef short a;
typedef struct {
  a b, c;
} d;
int e;
d *f;
long g;
char h;
void i(char *j, char *k) { *k = *j; }
void l() {
  char *m;
  for (; g; g++) {
    i(m, &h);
    f->c = h;
    f->b = f->c;
    m += e;
    f++;
  }
}

Command-line:  -O2 -march=armv8.2-a+sve  -msve-vector-bits=128
quantum-import.i:10:6: internal compiler error: in vectorizable_load, at
tree-vect-stmts.cc:11130
   10 | void l() {
      |      ^
0x22d2d0b internal_error(char const*, ...)
        $SRC/gcc/diagnostic-global-context.cc:518
0x7e92e7 fancy_abort(char const*, int, char const*)
        $SRC/gcc/diagnostic.cc:1696
0x12cfaab vectorizable_load
        $SRC/gcc/tree-vect-stmts.cc:11130
0x12dbc03 vect_analyze_stmt(vec_info*, _stmt_vec_info*, bool*, _slp_tree*,
_slp_instance*, vec<stmt_info_for_cost, va_heap, vl_ptr>*)
        $SRC/gcc/tree-vect-stmts.cc:13536
0x1338033 vect_slp_analyze_node_operations_1
        $SRC/gcc/tree-vect-slp.cc:7716
0x1338033 vect_slp_analyze_node_operations
        $SRC/gcc/tree-vect-slp.cc:7921
0x1337fc3 vect_slp_analyze_node_operations
        $SRC/gcc/tree-vect-slp.cc:7898
0x1337fc3 vect_slp_analyze_node_operations
        $SRC/gcc/tree-vect-slp.cc:7898
0x1339acf vect_slp_analyze_operations(vec_info*)
        $SRC/gcc/tree-vect-slp.cc:8316
0x130648b vect_analyze_loop_2
        $SRC/gcc/tree-vect-loop.cc:2983
0x1307f63 vect_analyze_loop_1
        $SRC/gcc/tree-vect-loop.cc:3471
0x13086bb vect_analyze_loop(loop*, gimple*, vec_info_shared*)
        $SRC/gcc/tree-vect-loop.cc:3631
0x134f34b try_vectorize_loop_1
        $SRC/gcc/tree-vectorizer.cc:1072
0x134f34b try_vectorize_loop
        $SRC/gcc/tree-vectorizer.cc:1189
0x134fc17 execute
        $SRC/gcc/tree-vectorizer.cc:1305
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.

Reply via email to