cmd/internal/obj/arm64: minor mistake in pre-increment example #39367
Labels
arch-arm64
Documentation
Issues describing a change to documentation.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
The following URL contains a minor mistake: https://golang.org/pkg/cmd/internal/obj/arm64/
Under point 2 ("Go uses .P and .W suffixes to indicate post-increment and pre-increment.") there is a mismatch between the Go assembly and the GNU syntax (for the pre-increment with .W suffix).
Specifically Go assembly loads a signed-byte with
MOVB
whereas the GNU syntax loads an (unsigned) 64-bit double-word withldr
.So either the example should be this
or
or even
The text was updated successfully, but these errors were encountered: