https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109132
--- Comment #4 from Martin Uecker ---
Seems you are right. Thanks!
I get it for gcc-10 but not gcc-12 with -mfma on x86.
Apparently, WG14 made a change at some point to allow this. But GCC does not
implement the pragma to turn it off...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109132
--- Comment #3 from Andrew Pinski ---
Note you get the same results on x86_64 with -mfma too.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109132
--- Comment #2 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #1)
> ubuntu@ubuntu:~\# ~/upstream-gcc/bin/gcc t.c -O2 -ffp-contract=off
> ubuntu@ubuntu:~\# ./a.out
> 0x1.2eab1ep-2 0x0p+0
> ubuntu@ubuntu:~\# ~/upstream-gcc/bin/gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109132
Andrew Pinski changed:
What|Removed |Added
Resolution|--- |INVALID
Status|UNCONFIRMED