Skip to content

cmd/compile: mips/mips64 floating point negation does not handle NaN correctly #58466

Open
@ianlancetaylor

Description

@ianlancetaylor

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

Metadata

Metadata

Assignees

Labels

NeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.arch-mipscompiler/runtimeIssues related to the Go compiler and/or runtime.help wanted

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions