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 middle-end/23666] Fold does not reduce C - ~a into a + (C+1)



------- Comment #4 from pinskia at gcc dot gnu dot org  2005-11-26 21:43 -------
The problem here is my fault, slightly.  Fold is converting -(~a) in the
NEGATE_EXPR but not in the generic functions to do the negation.  I will do the
patch for this one.  (I am saying that -(~a) is more complex than a+1 which is
true).


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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