Closed
Description
$ 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
Type
Projects
Status
Done