cmd/compile: mips/mips64 floating point negation does not handle NaN correctly #58466
Labels
arch-mips
compiler/runtime
Issues related to the Go compiler and/or runtime.
help wanted
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Milestone
As discussed on #56491 (comment), on MIPS the gc compiler uses
neg.d
(which it callsNEGD
) to negate a floating-point value. However, that instruction does not actually negate a NaN. That suggests that we should not useneg.d
for 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: