[Bug c/82940] Suboptimal code for (a & 0x7f) | (b & 0x80) on powerpc

segher at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Nov 17 08:56:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82940

Segher Boessenkool <segher at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|powerpc                     |powerpc*-*-*
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-11-17
                 CC|                            |segher at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #2 from Segher Boessenkool <segher at gcc dot gnu.org> ---
On trunk it does (with -m32 -O2):

g:
        rlwinm 9,4,0,25,31
        rlwinm 4,4,0,0,24
        lbzx 3,3,9
        rlwinm 3,3,0,25,31
        or 3,3,4
        blr


More information about the Gcc-bugs mailing list