Skip to content

cmd/compile/internal/ssa: plan9-amd64 is broken #15001

@mdempsky

Description

@mdempsky

https://go-review.googlesource.com/#/c/21005 broke plan9-amd64. This can be reproduced with

$ GOARCH=amd64 GOOS=plan9 go build syscall
# syscall
./zsysnum_plan9.go:50: invalid instruction: 00322 ($GOROOT/src/syscall/exec_plan9.go:108)   MOVWLZX "".buf+121(SP), DI
./zsysnum_plan9.go:50: invalid instruction: 00416 ($GOROOT/src/syscall/exec_plan9.go:115)   MOVWLZX "".buf+121(SP), R8

Standalone mostly minimized test case at https://gist.github.com/mdempsky/8e17da862a0f3a2c1036. This test case repros even with GOOS=linux, so the failure isn't plan9 specific at all, except that package syscall's plan9-specific code happens to tickle the failure.

Also, it seems to be sensitive to inlining, because removing the definition of Pread causes it to stop failing.

/cc @randall77 @dr2chase

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions