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: illegal combination ADD $8, ZR, R2 ABCON0 ZREG NONE REG NONE, 4 7 on arm64 #73180

Closed
ALTree opened this issue Apr 5, 2025 · 2 comments
Labels
BugReport Issues describing a possible bug in the Go implementation. 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 Apr 5, 2025

$ gotip version
go version devel go1.25-1647896aa2 Fri Apr 4 23:25:15 2025 -0700 linux/amd64
package p

func F(a, b map[float32]int) int {
	var st *struct {
		n int
		f float32
	}
	return a[0] + b[st.f]
}
$ GOARCH=arm64 gotip build crash.go 

./crash.go:8:2: illegal combination: 00068 (/home/alberto/crash.go:8)	ADD	$8, ZR, R2 ABCON0 ZREG NONE REG NONE, 4 7

cc @randall77

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Apr 5, 2025
@ALTree ALTree added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Apr 5, 2025
@ALTree ALTree added this to the Go1.25 milestone Apr 5, 2025
@gabyhelp gabyhelp added the BugReport Issues describing a possible bug in the Go implementation. label Apr 5, 2025
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/663155 mentions this issue: cmd/compile: be more conservative about arm64 insns that can take zero register

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BugReport Issues describing a possible bug in the Go implementation. 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

3 participants