https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115533
Sam James <sjames at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #58484|0 |1 is obsolete| | --- Comment #17 from Sam James <sjames at gcc dot gnu.org> --- Created attachment 58492 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58492&action=edit test.c This seems to be the best I can get out of it. The original (upstream) code passes with -ffp-contract=off, so if this is invalid, no feelings will be hurt. I'm going to keep looking for other IPA miscompilations when I have spare cycles. This reduced testcase passes with gcc 11 with -O3 -march=znver2 -fno-vect-cost-model -fipa-pta -ffp-contract=fast, but fails with 12+ with the same options. The relationship with the vectoriser here makes it hard to understand (in addition to my inexperience with FP so far).