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

Comments

@ALTree
Copy link
Member

@ALTree 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 this to the Go1.16 milestone Nov 14, 2020
@gopherbot
Copy link

@gopherbot gopherbot commented Nov 16, 2020

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

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants