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

            Bug ID: 118272
           Summary: [15 Regression] ICE when expanding a constructor of >
                    2 VLA vectors
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: tnfchris at gcc dot gnu.org
          Reporter: tnfchris at gcc dot gnu.org
  Target Milestone: ---

#pragma GCC target ("+sve")
extern char __attribute__ ((simd, const)) fn3 (int, short);
void test_fn3 (float *a, float *b, double *c, int n)
{
  for (int i = 0; i < n; ++i)
    a[i] = fn3 (b[i], c[i]);
}


compiled with -Ofast -march=armv9-a ices with:

during RTL pass: expand
dump file: /app/output.c.270r.expand
<source>: In function 'test_fn3':
<source>:34:12: internal compiler error: in store_constructor, at expr.cc:8065
   34 |     a[i] = fn3 (b[i], c[i]);
      |            ^~~~~~~~~~~~~~~~

which has both a target and an expand bug.

Mine.

Reply via email to