[Bug target/119428] [15 Regression] wrong code on e2fsprogs-1.47.2 since r15-8478-ge8a5f747cfa9c7

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Mar 22 17:30:25 GMT 2025


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

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So this version still works:
```
void f(unsigned char   *ADDR, unsigned int nr)
{
  unsigned char mask = ~1;
  mask = __builtin_stdc_rotate_left (mask, nr);
  ADDR += nr >> 3;
  *ADDR &= (unsigned char) mask;
}
```

Because the mask for the rotate is still there at combine.


More information about the Gcc-bugs mailing list