https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108004
Segher Boessenkool <segher at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |segher at gcc dot gnu.org
--- Comment #5 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to HaoChen Gui from comment #0)
> and 3,3,4
> cmpwi 0,3,0
> isel 5,5,6,1
> extsw 3,5
>
> The "and" and "cmpwi" can be optimized to "and." instruction. The same as
> "or" and "xor".
It cannot be "and.", that would do "cmpdi 3,0", and we want "cmpwi" here.