Skip to content

cmd/compile: 16 bit-width, short branch too far ICE on loong64 #61819

Closed
@ALTree

Description

@ALTree
$ gotip version
go version devel go1.22-088f953 Mon Aug 7 06:58:18 2023 +0000 linux/amd64

The (unreasonably) big function linked at the bottom of this post triggers an internal compiler error when built for GOARCH=loong64:

$ GOARCH=loong64 gotip build crash.go 

# command-line-arguments
./crash.go:22:5: 16 bit-width, short branch too far
00800 (/home/alberto/crash.go:57)	BLTZ	R4, 131880

Doesn't crash the compiler on other GOARCHs.

Full reproducer on gist.gihub.com.

cc @golang/loong64

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.arch-loong64Issues solely affecting the loongson architecture.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions