]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/arm64: add more atomic instructions
authorBen Shi <powerman1st@163.com>
Tue, 1 May 2018 03:25:15 +0000 (03:25 +0000)
committerCherry Zhang <cherryyz@google.com>
Thu, 3 May 2018 20:27:05 +0000 (20:27 +0000)
commitfc48dcb15ff55883381c06295a8478712849e214
treeace7198a8e7ad4187a21099c2726b3925a331a40
parent3c0bf181b79406a71b7b2fd22b4d222722b96649
cmd/internal/obj/arm64: add more atomic instructions

More atomic instructions were introduced in ARMv8.1. And this CL
adds support for them and corresponding test cases.

LDADD Rs, (Rb), Rt: (Rb) -> Rt, Rs+(Rb) -> (Rb)
LDAND Rs, (Rb), Rt: (Rb) -> Rt, Rs&(Rb) -> (Rb)
LDEOR Rs, (Rb), Rt: (Rb) -> Rt, Rs^(Rb) -> (Rb)
LDOR  Rs, (Rb), Rt: (Rb) -> Rt, Rs|(Rb) -> (Rb)

Change-Id: Ifb9df86583c4dc54fb96274852c3b93a197045e4
Reviewed-on: https://go-review.googlesource.com/110535
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/asm/internal/arch/arm64.go
src/cmd/asm/internal/asm/asm.go
src/cmd/asm/internal/asm/testdata/arm64.s
src/cmd/internal/obj/arm64/a.out.go
src/cmd/internal/obj/arm64/anames.go
src/cmd/internal/obj/arm64/asm7.go