-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/compile: arm64Negate for floating point is not correct #43619
Comments
I have figured out what happened, create this issue to get an issue id for writing a test file. |
NaN is neither less than or greater than any number https://play.golang.org/p/fYag0Dp6i0i I don't think this is a bug. |
Yes, you are right. So the above case really seems to be a bug. |
Change https://golang.org/cl/283572 mentions this issue: |
If we disable optimization, the output is 123 as expected. So there must be something wrong, I submit a patch, please take a look, thanks.
|
What version of Go are you using (
go version
)?master
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?linux/arm64
What did you do?
What did you expect to see?
123
What did you see instead?
0
The text was updated successfully, but these errors were encountered: