/ go Public
cmd/compile: mips/mips64 floating point negation does not handle NaN correctly #58466
Issues related to the Go compiler and/or runtime.
Feedback is required from experts, contributors, and/or the community before a change can be made.
As discussed on #56491 (comment), on MIPS the gc compiler uses
neg.d(which it calls
NEGD) to negate a floating-point value. However, that instruction does not actually negate a NaN. That suggests that we should not use
neg.dfor floating point negation, but should instead xor with the high bit.
CC @randall77 @golang/mips @golang/runtime
The text was updated successfully, but these errors were encountered: