https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121674
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu.org --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I think there is a missing `and 1` in what is exacted in the resulting code. bool is passed like `unsigned char` and only the lower 8 bits are valid IIRC. Which is why for GCC currently produces: `cmp dil, 1`