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

--- Comment #4 from zhongyunde at tom dot com <zhongyunde at tom dot com> ---
case from https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96427 generates *.LC0,
but don't emit an aggregate copy a_1 = *.LC0, i.e. it is legal even for
non-const local array.

typedef int v4si __attribute__((vector_size(64)));
int bar (v4si v);
int foo (int i)
{
  int a_1[131] = {38580, 691093, 378582, 691095, 938904, 251417, ... };
  v4si * ptr = (v4si *)a_1;
  v4si v = ptr[0];
  return bar (v);
}

Reply via email to