Re: [match.pd PATCH] PR tree-optimization/126467: 0.0-x -> -x vs. signed zeros.

Alexander Monakov <[email protected]> Fri, 7 Aug 2026 09:44:34 +0300 (MSK)
Newsgroups gmane.comp.gcc.patches
Message-ID <[email protected]>
On Wed, 5 Aug 2026, Roger Sayle wrote:

> gcc/testsuite/ChangeLog
>         PR tree-optimization/126467
>         * gcc.dg/pr126467-1.c: New test case.
>         * gcc.dg/pr126467-2.c: Likewise.
>         * gcc.dg/pr96392.c: Fix incorrect test case.

Sorry, what is incorrect in this testcase? x is an int there:

-double negate(int x)
-{
-  return 0.0 - x;
-}

Alexander