]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix intrinsifying sync/atomic.Swap* on AMD64
authorCherry Zhang <cherryyz@google.com>
Tue, 6 Sep 2016 12:48:14 +0000 (08:48 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 6 Sep 2016 14:44:50 +0000 (14:44 +0000)
commit644c16c76cc11034b124763a039a7164cb3e1abc
tree038bc78b57874ec2183b2da17e33a0cb91a35a8e
parentf1ef5a06d296fd0ba604a62ebb30531cef7ae74a
cmd/compile: fix intrinsifying sync/atomic.Swap* on AMD64

It should alias to Xchg instead of Swap. Found when testing #16985.

Change-Id: If9fd734a1f89b8b2656f421eb31b9d1b0d95a49f
Reviewed-on: https://go-review.googlesource.com/28512
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/gc/ssa.go
test/intrinsic.dir/atomic.go [new file with mode: 0644]