[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcc-bugs
Subject:    [Bug middle-end/55152] MAX_EXPR(a,-a) is really ABS_EXPR(a)
From:       "glisse at gcc dot gnu.org" <gcc-bugzilla () gcc ! gnu ! org>
Date:       2012-10-31 21:27:27
Message-ID: bug-55152-4-pgPa1hQdh0 () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]


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

--- Comment #3 from Marc Glisse <glisse at gcc dot gnu.org> 2012-10-31 21:27:27 UTC ---
Actually, looking at the doc of MAX_EXPR in tree.def (nothing in generic.texi),
we don't even need to ignore signed zeros to turn MAX_EXPR into ABS_EXPR:

/* Minimum and maximum values.  When used with floating point, if both
   operands are zeros, or if either operand is NaN, then it is unspecified
   which of the two operands is returned as the result.  */
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic