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

            Bug ID: 97849
           Summary: aarch64: ICE (segfault) during GIMPLE pass: ifcvt
                    since r10-3543-gf30b3d28
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: acoplan at gcc dot gnu.org
  Target Milestone: ---

AArch64 GCC ICEs on the following testcase:

int a, b, c, d;
static int e(int f) { return a == 0 ? 0 : f / a; }
int g() {
  int h;
  char i = c = 0;
  for (; c <= 8; c++)
    --i;
  for (; b;) {
    int *j = &a;
    d = *j;
    *j = e(0 >= i);
  }
}

at -O1 -ftree-vectorize -march=armv8.2-a+sve since
r10-3543-gf30b3d2891cef9803badb3f85d739c0fcfafd585. To reproduce:

$ aarch64-elf-gcc -c -S -O1 -ftree-vectorize -march=armv8.2-a+sve test.c

during GIMPLE pass: ifcvt
test.c: In function 'g':
test.c:3:5: internal compiler error: Segmentation fault
    3 | int g() {
      |     ^
0xdb190b crash_signal
        /home/alecop01/toolchain/src/gcc/gcc/toplev.c:330
0xe48224 ifcvt_local_dce
        /home/alecop01/toolchain/src/gcc/gcc/tree-if-conv.c:2993
0xe48224 tree_if_conversion(loop*, vec<gimple*, va_heap, vl_ptr>*)
        /home/alecop01/toolchain/src/gcc/gcc/tree-if-conv.c:3130
0xe48ace execute
        /home/alecop01/toolchain/src/gcc/gcc/tree-if-conv.c:3207
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to