-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: ppc64 miscompiles v>>32 == 0 #11987
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
Comments
I don't know if it's relevant but your prompt says ppc64el not ppc64le. |
That's just the ubuntu architecture name (an old joke, I think BE vs EL). GOARCH is ppc64le (and ./all.bash passes -- this is the same sort of machine as the builder). |
@mwhudson, please run this program on your ppc64le system and see what it prints:
If it doesn't say that v>>32 is 0, that's a ppc64le compiler bug. |
Ding ding ding. |
sradi and sradi. hide the top bit of their immediate argument apart from the rest of it, but the code only handled the sradi case. I'm pretty sure this is the only instruction missing (a couple of the rotate instructions encode their immediate the same way but their handling looks OK). This fixes the failure of "GOARCH=amd64 ~/go/bin/go install -v runtime" as reported in the bug. Fixes golang#11987 Change-Id: I0cdefcd7a04e0e8fce45827e7054ffde9a83f589
sradi and sradi. hide the top bit of their immediate argument apart from the rest of it, but the code only handled the sradi case. I'm pretty sure this is the only instruction missing (a couple of the rotate instructions encode their immediate the same way but their handling looks OK). This fixes the failure of "GOARCH=amd64 ~/go/bin/go install -v runtime" as reported in the bug. Fixes golang#11987 Change-Id: I0cdefcd7a04e0e8fce45827e7054ffde9a83f589
CL https://golang.org/cl/16710 mentions this issue. |
Can this be added to the 1.5.2 milestone? |
OK. |
CL https://golang.org/cl/16983 mentions this issue. |
… with immediate sradi and sradi. hide the top bit of their immediate argument apart from the rest of it, but the code only handled the sradi case. I'm pretty sure this is the only instruction missing (a couple of the rotate instructions encode their immediate the same way but their handling looks OK). This fixes the failure of "GOARCH=amd64 ~/go/bin/go install -v runtime" as reported in the bug. Fixes #11987 Change-Id: I0cdefcd7a04e0e8fce45827e7054ffde9a83f589 Reviewed-on: https://go-review.googlesource.com/16710 Reviewed-by: Minux Ma <minux@golang.org> Reviewed-on: https://go-review.googlesource.com/16983 Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
Other architectures (tried arm, arm64, 386, ppc64) work.
The text was updated successfully, but these errors were encountered: