Skip to content

Clang crash on aarch64: error in backend: Don't know how to widen the operands for INSERT_SUBVECTOR #102016

Closed
@ktkachov

Description

@ktkachov

The testcase

long long a;
short b;
long c;
long d(long e) {
  if (e < c)
    return c;
  return e;
}
void f(short e[][12], long long g[][2][2]) {
  for (int h;;)
    for (int i; i < 10; i += e[-1][4])
#pragma clang loop vectorize_predicate(enable)
      for (char j; j < 012; j += 4) {
        b = g[1][h][j];
        a = d(a);
      }
}

crashes with -O3 -march=armv9-a
error in backend: Don't know how to widen the operands for INSERT_SUBVECTOR

Metadata

Metadata

Assignees

No one assigned

    Labels

    crashPrefer [crash-on-valid] or [crash-on-invalid]llvm:SelectionDAGSelectionDAGISel as well

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions