[Bug target/99767] [9/10/11 Regression] ICE in expand_direct_optab_fn, at internal-fn.c:3360

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 25 15:27:34 GMT 2021


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

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
E.g. as
int a[1024], b[1024];

void
foo (void)
{
  #pragma omp simd
  for (int i = 0; i < 1024; i++)
    if (b[i] > 23) {
      a[i] = b[i] + 1;
      int v = 1 / 0;
    }
}
(omp simd is there only to convince it to vectorize it and not give up).


More information about the Gcc-bugs mailing list