]> Cypherpunks repositories - gostls13.git/commit
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)
committerKeith Randall <khr@golang.org>
Thu, 26 Oct 2017 02:45:05 +0000 (02:45 +0000)
commit40649e697907d928316efac47902a1c7554c3196
treea569190c03a6dd99b9d16077dea3bfddb2c011d3
parent088209bbe870725f82e44e604e787d7273488bd6
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>
src/cmd/compile/internal/x86/387.go
test/fixedbugs/issue22429.go [new file with mode: 0644]