]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't put SP in index slot
authorKeith Randall <khr@golang.org>
Thu, 31 Mar 2016 21:09:04 +0000 (14:09 -0700)
committerKeith Randall <khr@golang.org>
Thu, 31 Mar 2016 22:10:47 +0000 (22:10 +0000)
commit9f66636c93affa363f59196cacd160fa17deeb96
tree9aa53923252dc2f54960cbe5f7f877d3b3b87348
parent47c9e139aed3e6d24ee980828835fb03229272ff
cmd/compile: don't put SP in index slot

For idx1 ops, SP can appear in the index slot.
Swap SP into the base register slot so we can encode
the instruction.

Fixes #15053

Change-Id: I19000cc9d6c86c7611743481e6e2cb78b1ef04eb
Reviewed-on: https://go-review.googlesource.com/21384
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Alexandru Moșoi <alexandru@mosoi.ro>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/amd64/ssa.go