[Bug tree-optimization/126465] [16/17 Regression] Wrong code with IFN_COND_FMA folding on SVE

"tnfchris at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126465

--- Comment #3 from Tamar Christina <tnfchris at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #2)
> The else values, that is.

Yes, I am testing a patch.

> I wonder whether the folding is then still
> useful?  Maybe for constant else values, aka (negate! @5).

negate is not part of the forwarding region on FMA chains, so negating the
argument rather than the result gets the FMA to still forward the result to the
next one.

For for CPUs without this forwarding anyway it's not any worse.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.