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

Tamar Christina <tnfchris at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tnfchris at gcc dot gnu.org

--- Comment #1 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
This looks like a target bug. You seem to have an fneg (fabs (..)) instruction
on powerpc.  This means your copysign pattern needs to either reject the
copysign expansion when the second operand is negative, or it needs to emit
xsnabsdp in this case rather than copysign.

The generic optimization is correct and is doing what the target has requested,
your copysign optab implementation says you prefer it over for any operand.

Reply via email to