]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix slice-in-bound check on amd64p32
authorCherry Zhang <cherryyz@google.com>
Tue, 27 Jun 2017 20:34:06 +0000 (16:34 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 28 Jun 2017 16:20:53 +0000 (16:20 +0000)
commitc920fa537f1b1b10d27067224bdbe64f7bc68d51
tree974be0884d42035a9a33ee07c922d6a449c93e35
parent5e585830d3bed2b81b825e1c3e8c244726d091d7
cmd/compile: fix slice-in-bound check on amd64p32

Should use CMPL instead of CMPQ.

Fixes #20811.

Change-Id: I610d487949c2c8a08b3743656149069d931a51bb
Reviewed-on: https://go-review.googlesource.com/46870
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/rewriteAMD64.go
test/fixedbugs/issue20811.go [new file with mode: 0644]