Skip to content

Commit 01f15b6

Browse files
dianhong01cherrymui
authored andcommitted
cmd/internal/obj/arm64: add NOOP description in Go assembly syntax
This Patch describes NOOP in Go assembly syntax and gives Go assembly example and corresponding GNU assembly example. Change-Id: I9db659cc5e3dc6b1f1450f2064255af8872d4b1c Reviewed-on: https://go-review.googlesource.com/c/go/+/207400 Run-TryBot: eric fang <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Cherry Zhang <[email protected]>
1 parent 9940c77 commit 01f15b6

File tree

1 file changed

+5
-0
lines changed
  • src/cmd/internal/obj/arm64

1 file changed

+5
-0
lines changed

src/cmd/internal/obj/arm64/doc.go

+5
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,17 @@ Special Cases.
5353
5454
(3) No need to add "W" suffix: LDARB, LDARH, LDAXRB, LDAXRH, LDTRH, LDXRB, LDXRH.
5555
56+
(4) In Go assembly syntax, NOP is a zero-width pseudo-instruction serves generic purpose, nothing
57+
related to real ARM64 instruction. NOOP serves for the hardware nop instruction. NOOP is an alias of
58+
HINT $0.
59+
5660
Examples:
5761
VMOV V13.B[1], R20 <=> mov x20, v13.b[1]
5862
VMOV V13.H[1], R20 <=> mov w20, v13.h[1]
5963
JMP (R3) <=> br x3
6064
CALL (R17) <=> blr x17
6165
LDAXRB (R19), R16 <=> ldaxrb w16, [x19]
66+
NOOP <=> nop
6267
6368
6469
Register mapping rules

0 commit comments

Comments
 (0)