https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103535
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=103216 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I have a patch which gets the optimized code (at least being able to generate at the rtl level): _1 = p_3(D) & 1; _7 = _1 != 0; _6 = (unsigned int) _7; _9 = p_3(D) - _6; movl %edi, %eax andl $-2, %eax ret The patch is the one for PR 103216.