This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/14792] ((int)b & 1) != 0 is not folded to b & 1 != 0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14792

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |pinskia at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-02-12 09:21:00 UTC ---
This is fixed on the trunk as we fold ((int)a) & 1 into (int)(a&1) in forwprop
though that causes other issues so I am disabling that folding and am going to
implement the folding of (((int)a) & 1) != 0 in forwprop.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]