]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/mips: add support of LLV, SCV, NOOP instructions
authorCherry Zhang <cherryyz@google.com>
Tue, 11 Apr 2017 14:39:55 +0000 (10:39 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 16 May 2017 17:15:11 +0000 (17:15 +0000)
commitb53acd89db5847b9ddcba076df89bef8788dd348
tree493bcde661137e8aee2d73c96a3774f2c9bfd127
parent84a51432a80686267e131f5d516559b3d82122b8
cmd/internal/obj/mips: add support of LLV, SCV, NOOP instructions

LLV and SCV are 64-bit load-linked and store-conditional. They
were used in runtime as #define WORD. Change them to normal
instruction form.

NOOP is hardware no-op. It was written as WORD $0. Make a name
for it for better disassembly output.

Fixes #12561.
Fixes #18238.

Change-Id: I82c667ce756fa83ef37b034b641e8c4366335e83
Reviewed-on: https://go-review.googlesource.com/40297
Reviewed-by: Minux Ma <minux@golang.org>
Run-TryBot: Minux Ma <minux@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/asm/internal/asm/testdata/mips64.s
src/cmd/internal/obj/mips/a.out.go
src/cmd/internal/obj/mips/anames.go
src/cmd/internal/obj/mips/asm0.go
src/cmd/internal/obj/mips/obj0.go
src/runtime/internal/atomic/asm_mips64x.s
src/sync/atomic/asm_mips64x.s