[Bug target/106440] on Mac M1 chip undefined behavior of double arithmetic

2022-07-25 Thread yaobig97 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106440 --- Comment #3 from Yuhao Yao --- (In reply to Andrew Pinski from comment #1) > ubuntu@ubuntu:~/src/upstream-gcc-aarch64\# g++ t55.cc -ffp-contract=on -O2 > ubuntu@ubuntu:~/src/upstream-gcc-aarch64\# ./a.out > 3e+09 3e+09 > 0 > 0 > ubuntu@ubuntu

[Bug target/106440] on Mac M1 chip undefined behavior of double arithmetic

2022-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106440 --- Comment #2 from Andrew Pinski --- You can reproduce the same results on x86_64 with -mfma (which enables the FMA instruction set which is included on all recent x86_64 processors).

[Bug target/106440] on Mac M1 chip undefined behavior of double arithmetic

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