You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the spec, ideal floats do not have a -0. However, -0 is representable (and used) by the compiler's internal ideal float implementation. Fix the implementation to get rid of -0 (or hide it from the rest of the compiler).
According to the spec, ideal floats do not have a -0. However, -0 is representable (and used) by the compiler's internal ideal float implementation. Fix the implementation to get rid of -0 (or hide it from the rest of the compiler).
See issue #12576
The compiler uses cmd/compile/internal/gc/mpgetflt{32} to do the conversion. Maybe a check inside this routine is enough?
We've had to sprinkle +0.0 around to get around this problem, like this:
s.constFloat32(n.Type, mpgetflt32(f)+0.0)
The text was updated successfully, but these errors were encountered: