https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96694
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
Keywords| |easyhack
Status|NEW |ASSIGNED
Severity|normal |enhancement
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So
(for minmax (min max)
maxmin (max min)
(simplify
(bit_not (minmax:cs (bit_not @0) @1))
(maxmin @0 (bit_not @1))))
This is similar to the follow already pattern:
/* ~(~a | b) --> a & ~b */
(simplify
(bit_not (bit_ior:cs (bit_not @0) @1))
(bit_and @0 (bit_not @1)))