[Bug tree-optimization/58073] Suboptimal optimisation of ((x & 0x70) == 0x00 || (x & 0x70) == 0x10 || (x & 0x70) == 0x20)
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jun 4 22:32:51 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58073
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #6)
>
> And maybe even one like this (which will solve the issue sooner):
>
> (bit_ior
> (cmp (bit_and @0 INTEGER_CST@2) INTEGER_CST@3)
> (cmp @0 INTEGER_CST@5)))
Note the final INTEGER_CST has to be 0 I think but you get the idea.
More information about the Gcc-bugs
mailing list