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: x+0 != x if x is float -0. #27718
Labels
Milestone
Comments
Change https://golang.org/cl/135701 mentions this issue: |
Change https://golang.org/cl/190937 mentions this issue: |
gopherbot
pushed a commit
that referenced
this issue
Aug 28, 2019
This CL add test cases for the unary FP negative operation. Change-Id: I54e7292ca9df05da0c2b113adefc97ee1e94c6e2 Reviewed-on: https://go-review.googlesource.com/c/go/+/190937 Run-TryBot: Ben Shi <powerman1st@163.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
tomocy
pushed a commit
to tomocy/go
that referenced
this issue
Sep 1, 2019
This CL add test cases for the unary FP negative operation. Change-Id: I54e7292ca9df05da0c2b113adefc97ee1e94c6e2 Reviewed-on: https://go-review.googlesource.com/c/go/+/190937 Run-TryBot: Ben Shi <powerman1st@163.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
t4n6a1ka
pushed a commit
to t4n6a1ka/go
that referenced
this issue
Sep 5, 2019
This CL add test cases for the unary FP negative operation. Change-Id: I54e7292ca9df05da0c2b113adefc97ee1e94c6e2 Reviewed-on: https://go-review.googlesource.com/c/go/+/190937 Run-TryBot: Ben Shi <powerman1st@163.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We need to make sure we don't do the optimization x+0 -> x for floats, because it doesn't work when x is negative zero.
This bug started with 1.8.
CL: https://go-review.googlesource.com/c/go/+/24790
The text was updated successfully, but these errors were encountered: