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: Invalid PPC64 rotate mask #62698

Closed
ALTree opened this issue Sep 18, 2023 · 3 comments
Closed

cmd/compile: internal compiler error: Invalid PPC64 rotate mask #62698

ALTree opened this issue Sep 18, 2023 · 3 comments
Assignees
Labels
arch-ppc64x compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone

Comments

@ALTree
Copy link
Member

ALTree commented Sep 18, 2023

$ gotip version
go version devel go1.22-38b2c06 Sun Sep 17 09:04:09 2023 +0000 windows/amd64
package p

func F(a []int, s string, x int) int {
        return a[x&^copy([]byte{}, s)]
}
$ GOARCH=ppc64 gotip build crash.go

./crash.go:4:18: internal compiler error: 'F': panic during late lower while compiling F:

Invalid PPC64 rotate mask

goroutine 22 [running]:
cmd/compile/internal/ssa.Compile.func1()
        ./gotip/src/cmd/compile/internal/ssa/compile.go:49 +0x6c
panic({0x1061720?, 0x1261ea0?})
        ./gotip/src/runtime/panic.go:765 +0x132
cmd/compile/internal/ssa.encodePPC64RotateMask(0xcc5e85?, 0xc0001701e0?, 0xc0003d9890?)
        ./gotip/src/cmd/compile/internal/ssa/rewrite.go:1481 +0x126
cmd/compile/internal/ssa.rewriteValuePPC64latelower_OpPPC64AND(0xc0004e9bf0)
        ./gotip/src/cmd/compile/internal/ssa/rewritePPC64latelower.go:67 +0x1ea
cmd/compile/internal/ssa.rewriteValuePPC64latelower(0xc0003d9ca8?)
        ./gotip/src/cmd/compile/internal/ssa/rewritePPC64latelower.go:11 +0x35
...

cc @golang/compiler

@ALTree ALTree added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. arch-ppc64x labels Sep 18, 2023
@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Sep 18, 2023
@cuonglm
Copy link
Member

cuonglm commented Sep 18, 2023

git bisect points to https://go-review.googlesource.com/c/go/+/515576

@cherrymui
Copy link
Member

cc @golang/ppc64

@cherrymui cherrymui added this to the Go1.22 milestone Sep 18, 2023
@pmur pmur self-assigned this Sep 18, 2023
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/529195 mentions this issue: cmd/compile/internal/ssa: optimize (AND (MOVD [-1] x)) on PPC64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-ppc64x compiler/runtime Issues related to the Go compiler and/or runtime. NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Projects
None yet
Development

No branches or pull requests

5 participants