-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/compile: internal compiler error: Invalid PPC64 rotate mask [1.16 backport] #45636
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
The original issue was opened against the 1.16 when the merging support was added. It appears to have prevented somebody from compiling non-intuitive code (That is, a 0-length shift feeding an andi). |
Change https://golang.org/cl/311378 mentions this issue: |
Approved. This is a serious issue with no workaround. |
@toothrot Nope. 1.16 only. |
Thank you for this work @pmur |
Closed by merging 7e70979 to release-branch.go1.16. |
The shift amount should be masked to avoid rotation values beyond the numer of bits. In this case, if the shift amount is 0, it should rotate 0, not 32. Fixes #45636 Change-Id: I1e764497a39d0ec128e29af42352b70c70b2ecc5 Reviewed-on: https://go-review.googlesource.com/c/go/+/310569 Run-TryBot: Paul Murphy <murp@ibm.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com> Reviewed-by: Carlos Eduardo Seo <carlos.seo@linaro.org> Trust: Carlos Eduardo Seo <carlos.seo@linaro.org> (cherry picked from commit c8fb0ec) Reviewed-on: https://go-review.googlesource.com/c/go/+/311378 Reviewed-by: Keith Randall <khr@golang.org> Run-TryBot: Keith Randall <khr@golang.org> Trust: Lynn Boger <laboger@linux.vnet.ibm.com>
@pmur requested issue #45589 to be considered for backport to the next 1.16 minor release.
The text was updated successfully, but these errors were encountered: