Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/compile: testing/quick misbehaves on Nexus 9 linux/arm64 #19809
testing/quick's int64 chooser is written to return values in the range [-2⁶²,2⁶²).
But the code should run as written, and yet on @dr2chase's Nexus 9
Using a linux/arm64 toolchain built from a linux/arm64 toolchain
Before fixing testing/quick to generate the full range, we should figure
math/rand's (*Rand).Int63 says:
and (*rngSource).Int63 says:
and then testing/quick's randInt64 function does:
So either the
It could be that the Nexus 9 ARM64 hardware is buggy.
The following C program misbehaves on the problematic system.
After 20k-50k iterations the loop starts printing i on every iteration.
Not Go's fault. We'll see about reporting this elsewhere.