]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix CMPconstload rule
authorKeith Randall <khr@golang.org>
Sat, 15 Sep 2018 22:30:13 +0000 (15:30 -0700)
committerKeith Randall <khr@golang.org>
Mon, 17 Sep 2018 16:12:27 +0000 (16:12 +0000)
commit623c772814cdae562afb4c63c62d51a228bc672e
tree41be384a81a8487c395214f7b53630abbbd86249
parent4c36bc3dcd0af0b7a94089c049e5a08232c916d7
cmd/compile: fix CMPconstload rule

The CMPconstload opcodes take a ValAndOff as their AuxInt, not just
an offset.

Originally introduced in CL 135379.

Change-Id: I244b2d56ef2e99d2975faa2e97f4291ec97c64b7
Reviewed-on: https://go-review.googlesource.com/135418
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ilya Tocar <ilya.tocar@intel.com>
src/cmd/compile/internal/ssa/gen/AMD64.rules
src/cmd/compile/internal/ssa/rewriteAMD64.go