[Bug target/109132] Apple M1 floating point bug when optimizing

2023-03-14 Thread muecker at gwdg dot de via Gcc-bugs
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...

[Bug target/109132] Apple M1 floating point bug when optimizing

2023-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
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.

[Bug target/109132] Apple M1 floating point bug when optimizing

2023-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
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

[Bug target/109132] Apple M1 floating point bug when optimizing

2023-03-14 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109132 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED