cmd/internal/obj/arm64: remove the transition from $0 to ZR [1.18~1.19 backport] #57477
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Found fix in this commit 9f0f87c to master & go1.20rc1. Is it planned to be backported to previous versions?
What version of Go are you using (go version)?
Does this issue reproduce with the latest release?
Yes (for 1.19.4; 1.20 is not released for now)
What operating system and processor architecture are you using (go env)?
Mac OS, x86_64 (working on arm64 libraries)
What did you do?
Working on a library to support arm64 processors, the compiler generated binary with unexpected byte code.
Below is a minimal POC:
cross compile to generate arm64 binary:
objdump to see the byte code generated:
What did you expect to see?
Same bytecode as specified in the asm source.
What did you see instead?
3rd & 4th instructions are the SAME as the 2nd one, not 0s.
The text was updated successfully, but these errors were encountered: