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

            Bug ID: 123761
           Summary: vectorizer miscompile
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kristerw at gcc dot gnu.org
            Blocks: 118443
  Target Milestone: ---

The following test case fails when compiling for x86_64 with -O2 because the
vectorizer miscompiles the loops.

int
main ()
{
  int v = 0;
  for (int i = 0; i < 3; ++i)
    for (int j = 0; j < ({ if (i == 1 && j == 1) continue; 4; }); ++j)
      ++v;
  if (v != 9)
    __builtin_abort ();
  return 0;
}


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118443
[Bug 118443] [Meta bug] Bugs triggered by and blocking more smtgcc testing

Reply via email to