Skip to content
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

cmd/compile: internal compiler error: PPC64 shift arg mb out of range #42610

Closed
ALTree opened this issue Nov 14, 2020 · 1 comment
Closed

cmd/compile: internal compiler error: PPC64 shift arg mb out of range #42610

ALTree opened this issue Nov 14, 2020 · 1 comment
Labels
arch-ppc64x FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@ALTree
Copy link
Member

ALTree commented Nov 14, 2020

$ gotip version
go version devel +f423d616b1 Fri Nov 13 15:15:15 2020 +0000 linux/amd64

The following program:

package p

func f(a []int, i uint) {
	g := func(p int) int {
		i = uint(p) * (uint(p) & (i & 1))
		return 1
	}
	a[0] = g(8) >> 1
}

Crashes the tip compiler when built for ppc64 or ppc64le:

$ GOARCH=ppc64 gotip tool compile crash.go

# command-line-arguments
./crash.go:8:4: internal compiler error: 'f': panic during lower while compiling f:

PPC64 shift arg mb out of range

[...]

It compiles fine on go1.15.5.

Bisected to 967465d.

cc @laboger

@ALTree ALTree added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Nov 14, 2020
@ALTree ALTree added this to the Go1.16 milestone Nov 14, 2020
@gopherbot
Copy link

Change https://golang.org/cl/270358 mentions this issue: cmd/compile: fix rules regressions with shifts on PPC64

@ALTree ALTree added NeedsFix The path to resolution is known, but the work has not been done. and removed NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. labels Nov 17, 2020
@golang golang locked and limited conversation to collaborators Apr 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-ppc64x FrozenDueToAge NeedsFix The path to resolution is known, but the work has not been done.
Projects
None yet
Development

No branches or pull requests

2 participants