]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: intrinsify atomic operations on s390x
authorMichael Munday <munday@ca.ibm.com>
Wed, 19 Oct 2016 20:41:01 +0000 (16:41 -0400)
committerMichael Munday <munday@ca.ibm.com>
Tue, 25 Oct 2016 12:23:49 +0000 (12:23 +0000)
commit517a44d57e6a0834e98b763045fab9be8f4673d0
tree317458d1c5631951f07d2e6917c053b67b8e861c
parent2113c9ad0d82b3d1a734c0b5fc0efc9c44a920d5
cmd/compile: intrinsify atomic operations on s390x

Implements the following intrinsics on s390x:
 - AtomicAdd{32,64}
 - AtomicCompareAndSwap{32,64}
 - AtomicExchange{32,64}
 - AtomicLoad{32,64,Ptr}
 - AtomicStore{32,64,PtrNoWB}

I haven't added rules for And8 or Or8 yet.

Change-Id: I647af023a8e513718e90e98a60191e7af6167314
Reviewed-on: https://go-review.googlesource.com/31614
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/s390x/prog.go
src/cmd/compile/internal/s390x/ssa.go
src/cmd/compile/internal/ssa/gen/S390X.rules
src/cmd/compile/internal/ssa/gen/S390XOps.go
src/cmd/compile/internal/ssa/opGen.go
src/cmd/compile/internal/ssa/rewriteS390X.go