]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj/s390x: add atomic operation instructions
authorMichael Munday <munday@ca.ibm.com>
Fri, 26 Aug 2016 14:33:34 +0000 (10:33 -0400)
committerMichael Munday <munday@ca.ibm.com>
Fri, 26 Aug 2016 15:08:58 +0000 (15:08 +0000)
commit266b349b2d28bf69f778320adb7e8ecc6bf848cd
tree9e47e477c9b69b683e77c17e79ad71220c95e787
parent14efaa0dc3d3ff5a3919c27297297ef0cd5bb625
cmd/internal/obj/s390x: add atomic operation instructions

Adds the following s390x instructions from the interlocked access
facility:

 * LAA(G)  - load and add
 * LAAL(G) - load and add logical
 * LAN(G)  - load and and
 * LAX(G)  - load and exclusive or
 * LAO(G)  - load and or

These instructions can be used for atomic arithmetic/logical
operations. The atomic packages will be updated in future CLs.

Change-Id: Idc850ac6749b3e778fda3da66bcd864f6b1df375
Reviewed-on: https://go-review.googlesource.com/27871
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/asm/internal/asm/testdata/s390x.s
src/cmd/internal/obj/s390x/a.out.go
src/cmd/internal/obj/s390x/anames.go
src/cmd/internal/obj/s390x/asmz.go