There is more than one Go compiler and the use of fused-multiply-add is not guaranteed. The Go spec permits FMA but does not require it.
I suggest reading the "Floating-point operators" section of the specification for clarity here. -rob On Sat, Sep 26, 2020 at 9:23 AM Ian Lance Taylor <i...@golang.org> wrote: > On Fri, Sep 25, 2020 at 4:03 PM Ryan Keppel <ryan.kepp...@gmail.com> > wrote: > > > > Does golang generate the SSE2 over the x87 floating point instructions > on x64? In Java terms, it's always using strictfp? You could check the > assembly I suppose. > > On amd64 the Go compiler uses SSE2. It does not use x87. > > However, the Go compiler is not quite like Java strictfp, as the Go > compiler will use instructions like fma that do not round precisely as > strictfp requires. > > Ian > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/CAOyqgcXVUhQzhtz7zb-gR4%3DL9v4mzOv%2Brif6bS%2Bep3NV8r3fSA%40mail.gmail.com > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAOXNBZQ%2BJX45qbD1_DowFvAZO9kker%3DD0Z2ACaC0tH5nhmRvzA%40mail.gmail.com.