https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104376
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |104378 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Filed PR 104378 for the (31 - x) ^ 31 issue. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104378 [Bug 104378] (N - x) ^ N should be optimized to x if x <= N (unsigned) and N is a pow2 - 1