]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.9] cmd/compile: make sure not to use SP as an index register
authorKeith Randall <khr@golang.org>
Wed, 25 Oct 2017 20:46:38 +0000 (13:46 -0700)
committerAndrew Bonventre <andybons@golang.org>
Mon, 22 Jan 2018 20:24:55 +0000 (20:24 +0000)
commit5c08eef8706d56fe9509e9bca63d6a7f9d395036
tree3aa697a23a1deae00216e4f43405f913d5e570c2
parentaae9998d41d1890476951ef5ae51adc1d4a5e1d7
[release-branch.go1.9] cmd/compile: make sure not to use SP as an index register

...because that's an illegal addressing mode.

I double-checked handling of this code, and 387 is the only
place where this check is missing.

Fixes #22429

Change-Id: I2284fe729ea86251c6af2f04076ddf7a5e66367c
Reviewed-on: https://go-review.googlesource.com/73551
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-on: https://go-review.googlesource.com/88317
Run-TryBot: Andrew Bonventre <andybons@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/x86/387.go
test/fixedbugs/issue22429.go [new file with mode: 0644]