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

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Mar 14 20:11:07 GMT 2023


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109132

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(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 t.c -O2
> ubuntu@ubuntu:~\# ./a.out
> 0x1.2eab1ep-2 0x1.1b990cp-29
> 
> 
> 
> NOT a bug. the use of FMA increases precission here ...

Note this was done on aarch64-linux-gnu with a GCC built from 20230310.


More information about the Gcc-bugs mailing list