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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2022-09-21
                 CC|                            |aldyh at redhat dot com,
                   |                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
            Summary|gcc-trunk crash at -O2      |[13 Regression] ICE in
                   |                            |expand_LOOP_VECTORIZED, at
                   |                            |internal-fn.cc:2720  with
                   |                            |-O2 since
                   |                            |r13-1598-g0a7e721a6499a42f

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Thanks for the report, please do not over-reduce test-cases so that it's full
of warnings.

Fixed test-case:

$ cat pr106995.c
int a, b, c, d;
static unsigned long *e = &b, *f = &b;

int
g(int h) { return a >= 2 ? 0 : h >> a; }

void
i() {
  for (; c;) {
    if (*f ^ 11)
      for (;;)
        ;
    d = g(0 >= 0);
    *e = d;
  }
}

int main() {}

Started with r13-1598-g0a7e721a6499a42f.

Reply via email to