You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/compile: ICE on 386 when inlining nested bit rotations (Int64Lo not lowered) #81687
changed the title [-]Go 1.27 ICE on 386 when inlining nested bit rotations (Int64Lo not lowered)[/-][+]cmd/compile: ICE on 386 when inlining nested bit rotations (Int64Lo not lowered)[/+]on Sep 23, 2026
Activity
Skip TestRor32 on 386
Skip TestRor32 on 386
JoTurk commentedon Sep 23, 2026
I ran git bisect from go1.27.0 to go1.26.0, and found that the ICE bisects to this commit 8dcb317
gopherbot commentedon Sep 23, 2026
Change https://go.dev/cl/837245 mentions this issue:
cmd/compile: use a 32-bit type for rewritten rotate amountsthepudds commentedon Sep 23, 2026
FWIW, this exact example seems to no longer cause a problem on latest master:
However, that constant folding might just be masking the underlying problem.
If I change the first arg in the first
rotatecall to be a variable rather than a constant, it seems to still ICE on master:CC @Jorropo (for 8dcb317, if interested)
[-]Go 1.27 ICE on 386 when inlining nested bit rotations (Int64Lo not lowered)[/-][+]cmd/compile: ICE on 386 when inlining nested bit rotations (Int64Lo not lowered)[/+]Jorropo commentedon Sep 23, 2026
cc @gopherbot please open backport issues for 1.27
Can lead to compiler crashes for valid code on 32bits arches.
gopherbot commentedon Sep 23, 2026
Backport issue(s) opened: #81706 (for 1.27).
Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.
cmd/compile: use a 32-bit type for rewritten rotate amounts
gopherbot commentedon Sep 30, 2026
Change https://go.dev/cl/842565 mentions this issue:
[release-branch.go1.27] cmd/compile: use a 32-bit type for rewritten rotate amounts[release-branch.go1.27] cmd/compile: use a 32-bit type for rewritten …
gopherbot commentedon Oct 6, 2026
Change https://go.dev/cl/845966 mentions this issue:
[release-branch.go1.26] cmd/compile: use a 32-bit type for rewritten rotate amountsJunyangShao commentedon Oct 27, 2026
@gopherbot please open backport issues for 1.26
gopherbot commentedon Oct 27, 2026
Backport issue(s) opened: #82642 (for 1.26).
Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases.
[release-branch.go1.26] cmd/compile: use a 32-bit type for rewritten …