]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/obj/arm64: fix typos in document
authorfanzha02 <fannie.zhang@arm.com>
Wed, 3 Jun 2020 02:33:03 +0000 (10:33 +0800)
committerCherry Zhang <cherryyz@google.com>
Wed, 3 Jun 2020 14:51:34 +0000 (14:51 +0000)
The current document mismatches Go syntax loads a signed-byte
instruction "MOVB" with GNU syntax loads an 64bit double-word
instruction "ldr". This is just a typo in the document, the
assembler has the correct encoding. This patch fix this error.

Fixes #39367

Change-Id: Idb8f65ca540514ee5bc8f07073e756838710ba93
Reviewed-on: https://go-review.googlesource.com/c/go/+/236217
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/internal/obj/arm64/doc.go

index d66e6f85e69e15de5c4ee6ac00e7414b3da046c4..751521754472f6cb092c66795c3fcff0c5b61c0f 100644 (file)
@@ -22,7 +22,8 @@ using different register names.
 
   Examples:
     MOVD.P -8(R10), R8         <=>      ldr x8, [x10],#-8
-    MOVB.W 16(R16), R10        <=>      ldr x10, [x16,#16]!
+    MOVB.W 16(R16), R10        <=>      ldrsb x10, [x16,#16]!
+    MOVBU.W 16(R16), R10       <=>      ldrb x10, [x16,#16]!
 
 3. Go uses a series of MOV instructions as load and store.