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.d for floating point negation, but should instead xor with the high bit.
CC @randall77 @golang/mips @golang/runtime
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.dfor floating point negation, but should instead xor with the high bit.CC @randall77 @golang/mips @golang/runtime