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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kugan at gcc dot gnu.org
            Summary|[16 Regression] wrong code  |[16 Regression] wrong code
                   |at -O2 and above on         |at -O2 and above on
                   |x86_64-pc-linux-gnu         |x86_64-pc-linux-gnu since
                   |                            |r16-5526

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
```
int main() {
  unsigned char a[6] = {0, 0, 1, 2, 0, 0};
  for (int i = 0; i < 256; i++)
    __builtin_memmove(&a[1], &a[2], 4);
  if (a[1] != 0)
    __builtin_abort();
}
```

Reply via email to