Closed randall77 closed 3 days ago
Related Issues
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
@dmitshur
Change https://go.dev/cl/630397 mentions this issue: cmd/compile: fix rewrite rules for multiply/add
Go version
tip
Output of
go env
in your module/workspace:What did you do?
First seen as a failure on x/exp. The test
rand.TestModulo
is failing.Reproducer:
This prints different things than go1.23 prints.
It was caused by me in CL 629858. Subtracting a negative should make a positive, it seems.
What did you see happen?
test failure. It prints
What did you expect to see?
It should print