-
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: doesn't optimize float comparison to MINSD #72831
Comments
We have to be very careful about NaNs and +/-0. I don't think
|
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.) |
I forgot about negative zero. I think you're right.
Thanks! |
.. Of course the literal
we get -0.0 and +0.0, matching MINSD. |
I guess it is possible that would work. All the non-commutative cases hurt my brain... |
This runs to completion:
I do apologize for making us think about floats. |
You shall be punished by having to write tests about floats. |
Can this be closed? (This is making me think about floats and SIMD, ugh.) |
As far as I understand, we've concluded that the suggested optimization is (probably) safe, so I don't think this issue should be closed yet, sorry. |
Go version
go version go1.24.1 linux/amd64
Output of
go env
in your module/workspace:What did you do?
go build -gcflags=-S
What did you see happen?
What did you expect to see?
I think
but maybe
AT&T argument order has me thoroughly confused at times.
The text was updated successfully, but these errors were encountered: