Skip to content

cmd/compile: GOARCH=arm64 compiler crash: illegal combination #22390

@ALTree

Description

@ALTree
$ gotip version
go version devel +006bc57095 Sun Oct 22 15:50:50 2017 +0000 linux/amd64

The following program, reduced from a gosmith-generated one:

package p

var V [2]interface{}

func F() {
	V = [2]interface{}{}
}

crashes the tip compiler when compiled with GOARCH=arm64:

$ GOARCH=arm64 gotip build 0.go

# command-line-arguments
<autogenerated>:1:0: illegal combination 00036 (0.go:6)	STP	(ZR, ZR), "".V(SB) PAIR NONE ADDR, 10 3
<autogenerated>:1:0: illegal combination 00040 (0.go:6)	STP	(ZR, ZR), "".V+16(SB) PAIR NONE ADDR, 10 3
<autogenerated>:1:0: illegal combination 00036 (0.go:6)	STP	(ZR, ZR), "".V(SB) PAIR NONE ADDR, 10 3
<autogenerated>:1:0: illegal combination 00040 (0.go:6)	STP	(ZR, ZR), "".V+16(SB) PAIR NONE ADDR, 10 3
<autogenerated>:1:0: illegal combination 00036 (0.go:6)	STP	(ZR, ZR), "".V(SB) PAIR NONE ADDR, 10 3
<autogenerated>:1:0: illegal combination 00040 (0.go:6)	STP	(ZR, ZR), "".V+16(SB) PAIR NONE ADDR, 10 3

The program compiles successfully with go1.9.1.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions