]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: amd64, allow XCHG on stack pointers
authorKeith Randall <khr@golang.org>
Sun, 19 Feb 2017 08:16:27 +0000 (00:16 -0800)
committerKeith Randall <khr@golang.org>
Sun, 19 Feb 2017 17:16:01 +0000 (17:16 +0000)
commitcfb0d349921a8f1ce3af8eb56188fc020d8828e5
treee4ab66a6f9c94eba9bc348c111b1f372639a80c1
parentf37428d8b7e06edc4be472695db677f82c9564c5
cmd/compile: amd64, allow XCHG on stack pointers

XCHG needs to allow the stack pointer as an argument because we have a
rewrite that incorporates the address of a local variable into the
instruction.

Fixes #19184

Change-Id: Ic438e6e1946332cdce3864d15abecd41b911b2a9
Reviewed-on: https://go-review.googlesource.com/37253
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/opGen.go