[Bug tree-optimization/101226] Suboptimal codegen for >>/>>>

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue May 2 04:06:48 GMT 2023


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |pinskia at gcc dot gnu.org

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is a C/C++ example:
typedef unsigned char ubyte;
void f1()
{
    extern ubyte value;
    unsigned int t = value;
    t >>= 5;
    value = t;
}

void f2()
{
    extern ubyte value;
    value = value >> 5;
}


More information about the Gcc-bugs mailing list